nm 命令
最好是阅读 man nm
nm - list symbols from object files
If lowercase, the symbol islocal; 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 dynamiclinker 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.
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。