734 Part VI . Programming (Web site traffic) in Linux The

734 Part VI . Programming in Linux The nm Command The nm command lists all of the symbols encoded in an object or binary file. It s used to see what function calls a program makes or to see if a library or object file provides a needed function. nm has the following syntax: nm [options] file nm lists the symbols stored in file, which must be a static library or archive file, as described in the preceding section. options controls nm s behavior. Table 28-3 describes useful options for nm. Table 28-3 nm Command-Line Options Option Description -C Converts symbol names into user-level names. This is especially useful for making C++ function names readable. -l Uses debugging information to print the line number where each symbol is defined, or the relocation entry if the symbol is undefined. -s When used on archive (.a) files, prints the index that maps symbol names to the modules or members in which the symbol is defined. -u Only displays undefined symbols, symbols defined externally to the file being examined. Here s an example that uses nm to show some of the symbols in /usr/lib/libdl.a: $ nm /usr/lib/libdl.a | head dlopen.o: 00000040 T __dlopen_check U _dl_open U _dlerror_run 00000040 W dlopen 00000000 t dlopen_doit dlclose.o: U _dl_close
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.

Leave a Reply