objdump 符号表输出格式

没找到objdump的输出格式解释的文档,只能自己猜测了。

objdump打印符号表的格式:

shenyan@ubuntu:~/Temp$ objdump -t a.o

a.o:     file format elf32-i386

SYMBOL TABLE:
00000000 l    df *ABS* 00000000 a.c
00000000 l    d  .text 00000000 .text
00000000 l    d  .data 00000000 .data
00000000 l    d  .bss 00000000 .bss
00000000 l    d  .note.GNU-stack 00000000 .note.GNU-stack
00000000 l    d  .comment 00000000 .comment
00000000 g     F .text 00000005 f_test
00000005 g     F .text 00000027 main
00000000         *UND* 00000000 shared
00000000         *UND* 00000000 swap

1.段内偏移

2.符号作用域

3.符号类型:

  d ?? 

  f 文件名

  F 函数名

4.符号所在段

    *UND*外部链接符号,未在本目标文件定义

5.符号对应的对象占据的内存空间大小,没有实体对象大小为0,未定义的为0

6. 符号名


source url:http://blog.csdn.net/shenyan008/article/details/6598950

posted @ 2011-10-21 11:54  hnrainll  阅读(6472)  评论(0编辑  收藏  举报