Displays the symbol information of a specified object file.
The stripnm command (when run without the -s flag) prints the symbol table of a specified object file to standard output. The file specified by the File parameter can be a single object file or an archive library of object files. If the file specified by the File parameter is an archive, a listing for each object file in the archive is produced. If the symbol table has been stripped from the object file, the stripnm command extracts symbol names from the traceback tables (even if the -s flag is not specified). If the traceback tables do not exist, an error message is displayed.
Note: The stripnm command does not list all symbols from the symbol table. Only file names and named and unnamed external symbols are reported. When used with the -s flag, the stripnm command will also suppress printing of some duplicated symbols in the symbol table.
Each symbol name is followed by its address (a series of blanks if the address is undefined) and the type of class and section type. The address field can be displayed as a decimal (the default value) or hexadecimal (if the -x flag is specified).
When run using the -s flag, the stripnm command extracts routine names first from the traceback tables and then from the symbol table, if it exists. Traceback tables are found at the end of routines, and contain the symbolic names of these routines. Routines defined as static do not appear in the symbol table, but may have traceback tables.
The stripnm command can also search for the glue code. The glue code is a set of executable instructions in the object file. In the Text section of the object file, the glue code is composed of the following sequence of instructions:
The stripnm command searches the Text section from beginning to end for this sequence. If the command finds a sequence of instructions that matches, it is reported as glue code.
The stripnm command can also be used to search for symbol information in the /unix file. If the /unix file does not correspond to the currently running kernel, a warning message is displayed.
Note: Only the root user and members of the security group should have execute (x) access to this command.
stripnm a.out
stripnm -x a.out
stripnm -s a.out
The strip command.