Chapter 11. Symbol Tables

Without having access to the complete UNIX source, we have to learn to take full advantage of the header files in /usr/include. Reading through these files, we get an idea of what we might be able to see when poking around in the kernel. Another tool we use to help us do this is the UNIX nm command. Let’s explore this command in detail.

Namelists & the nm command

nm displays the symbol table or namelist of an executable object file. On Solaris 1 systems, the executable object files are in assembler and link editor format. On Solaris 2 systems, objects are in executable and linking format, ELF. Some UNIX systems use the common assembler and link editor format, COFF.

The symbols in an executable object file can be one of several ...

Get Panic! UNIX® System Crash Dump Analysis now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.