免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2939 | 回复: 1
打印 上一主题 下一主题

[系统] objdump -t输出符号表格式求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-08-02 09:13 |只看该作者 |倒序浏览
SYMBOL TABLE:
00000000 l    df *ABS*  00000000 m.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     O .data  00000004 i
00000004 g     O .data  00000004 j
00000000 g     F .text  00000039 main
00000000         *UND*  00000000 sum

查了资料没找到相关格式的说明
其中d  O表示什么?

论坛徽章:
0
2 [报告]
发表于 2013-08-02 10:21 |只看该作者
在官网找到了
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.

The flag characters are divided into 7 groups as follows:

l
g
u
!
The symbol is a local (l), global (g), unique global (u), neither global nor local (a space) or both global and local (!). A symbol can be neither local or global for a variety of reasons, e.g., because it is used for debugging, but it is probably an indication of a bug if it is ever both local and global. Unique global symbols are a GNU extension to the standard set of ELF symbol bindings. For such a symbol the dynamic linker will make sure that in the entire process there is just one symbol with this name and type in use.

w
The symbol is weak (w) or strong (a space).

C
The symbol denotes a constructor (C) or an ordinary symbol (a space).

W
The symbol is a warning (W) or a normal symbol (a space). A warning symbol's name is a message to be displayed if the symbol following the warning symbol is ever referenced.

I

i
The symbol is an indirect reference to another symbol (I), a function to be evaluated during reloc processing (i) or a normal symbol (a space).

d
D
The symbol is a debugging symbol (d) or a dynamic symbol (D) or a normal symbol (a space).

F

f

O
The symbol is the name of a function (F) or a file (f) or an object (O) or just a normal symbol (a space).
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP