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

前端 未结 5 1287
南旧
南旧 2021-01-30 16:26
SYMBOL TABLE:
0000000000000000  w      *UND*  0000000000000000              __gmon_start__

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

5条回答
  •  孤独总比滥情好
    2021-01-30 17:00

    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.

提交回复
热议问题