What does each column of objdump's Symbol table mean?

Viewed 57002
SYMBOL TABLE:
0000000000000000  w      *UND*  0000000000000000              __gmon_start__

I've man objdump but there's no such info.

Anyone know what the 5 columns mean?

5 Answers

From description of option -t in man pages of objdump from man7.org, the format is explained as follows:

The other common output format, usually seen with ELF based files, looks like this:

              00000000 l    d  .bss   00000000 .bss
              00000000 g       .text  00000000 fred
  • Here the first number is the symbol's value (sometimes refered to as its address).
  • The next field is actually a set of characters and spaces indicating the flag bits that are set on the symbol.These characters are described below.
  • Next is the section with which the symbol is associated or *ABS* if the section is absolute (ie not connected with any section), or *UND* if the section is referenced in the file being dumped, but not defined there.
  • After the section name comes another field, a number, which for common symbols is the alignment and for other symbol is the size. Finally the symbol's name is displayed.

You can visit above site for a more detail description.

Related