您的位置:首页 > 其它

nm 命令

2017-02-23 09:15 162 查看
最好是阅读 man nm

nm - list symbols from object files

If lowercase, the symbol is local; if uppercase, the symbol is global (external)

其输出结果:
"A" The symbol’s value is absolute, and will not be changed by further linking.

"B"/"b" The symbol is in the uninitialized data section (known as BSS).

"C" The symbol is common. Common symbols are uninitialized data. When linking, multiple common symbols may appear with the same name. If the symbol is defined anywhere, the common symbols are treated as undefined references.

"D"/"d" The symbol is in the initialized data section. "T"/"t" The symbol is in the text (code) section.
"U" The symbol is undefined.
"u" The symbol is a unique global symbol. This is 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.

"S"/"s" The symbol is in an uninitialized data section for small objects.

AGlobal absolute 符号。
aLocal absolute 符号。
BGlobal bss 符号。
bLocal bss 符号。
DGlobal data 符号。
dLocal data 符号。
f源文件名称符号。
TGlobal text 符号。
tLocal text 符号。
U未定义符号。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nm