0
nm命令详解
nm 命令全称, names, 用于显示二进制目标文件的符号表。
使用方法
nm -a /usr/local/Cellar/php70-redis/3.0.0/redis.so | grep conn
0000000000036c99 T _cluster_disconnect
0000000000002083 T _redis_connect
000000000001cd80 T _redis_sock_connect
00000000000217c9 T _redis_sock_disconnect
0000000000001b03 T _redis_sock_get_connected
000000000000205d T _zim_Redis_connect
0000000000002275 T _zim_Redis_pconnect
符号 类型 | 说明 |
---|---|
B | 该符号的值出现在非初始化数据段(bss)中。例如,在一个文件中定义全局static int test。则该符号test的类型为b,位于bss section中。其值表示该符号在bss段中的偏移。一般而言,bss段分配于RAM中 |
C | 该符号为common。common symbol是未初始话数据段。该符号没有包含于一个普通section中。只有在链接过程中才进行分配。符号的值表示该符号需要的字节数。例如在一个c文件中,定义int test,并且该符号在别的地方会被引用,则该符号类型即为C。否则其类型为B。 |
D | 该符号位于初始话数据段中。一般来说,分配到data section中。例如定义全局int baud_table[5] = {9600, 19200, 38400, 57600, 115200},则会分配于初始化数据段中。 |
G | 该符号也位于初始化数据段中。主要用于small object提高访问small data object的一种方式。 |
I | 该符号是对另一个符号的间接引用。 |
N | 该符号是一个debugging符号。 |
R | 该符号位于只读数据区。例如定义全局const int test[] = {123, 123};则test就是一个只读数据区的符号。注意在cygwin下如果使用gcc直接编译成MZ格式时,源文件中的test对应_test,并且其符号类型为D,即初始化数据段中。但是如果使用m6812-elf-gcc这样的交叉编译工具,源文件中的test对应目标文件的test,即没有添加下划线,并且其符号类型为R。一般而言,位于rodata section。值得注意的是,如果在一个函数中定义const char *test = “abc”, const char test_int = 3。使用nm都不会得到符号信息,但是字符串“abc”分配于只读存储器中,test在rodata section中,大小为4。 |
S | 符号位于非初始化数据区,用于small object。 |
T | 该符号位于代码区text section。 |
U | 该符号在当前文件中是未定义的,即该符号的定义在别的文件中。例如,当前文件调用另一个文件中定义的函数,在这个被调用的函数在当前就是未定义的;但是在定义它的文件中类型是T。但是对于全局变量来说,在定义它的文件中,其符号类型为C,在使用它的文件中,其类型为U。 |
V | 该符号是一个weak object。 |
W | The symbol is a weak symbol that has not been specifically tagged as a weak object symbol. |
- | 该符号是a.out格式文件中的stabs symbol。 |
? | 该符号类型没有定义 |
回复
Recommend
Recent search keywords
- kubernetes
- znsfs
- ZNS
- Scalar size does not match
- 超星学习通
- httpsonlineschoolal5com99214
- skillz
- JCMM
- 垃圾场
- monitoro.co
- monitoro
- insta
- -1 OR 3 422-422-1=0 0 0 1
- font_heading
- pretzelai
- Hackintosh
- A52S
- UPDATE ROM AC8227L - Android JCAC10003-OC2-V1.0.04R7-211119_1742
- -1 OR 3+422-422-1=0+0+0+1
- The Path to Reliability: How a QA Engineer Should Act in Non-Standard Situations
- -1 or 3 446-446-1=0 0 0 1 --
- WRP Android Video Player Pro" AND 7796=9605 AND "BfKb"="BfKb
- wrp android video player pro and 8553=8553-- woed
- AJG LONDON LTD
- All blooks in blocker
- fatbobman
- 5200L
- supermarket HTB
- netherlands
- https://m.youtube.com/watch?v=XylKubQFAkw#
- python数据处理
- moto
- MTK 8227L Android download
- w89941
- gold quest blooket
- gold quest
- Phoneinfoga
- Instrukcja
- nvst.ly
- nvstly
- trade hub
- madagascar
- smartos
- omnios
- 快
- proxy list.txt
- All blooket
- watch hentai app
- hentai stream app apk android
- hentai stream
- ssl pterodactyl
- BACKGROUND REMOVER
- code.daypilot.org
- drops
- YT9217B
- Loil
- 教你做任务之
- antranigv.am
- 转盘
- fbi
- 下列何者可能是黃禹錫造假研究成果的原因
- gaminator
- 程序员
- -1 OR 3+789-789-1=0+0+0+1 --
- @@flq3T
- glizzy
- wrp android video player pro) and 5868=4380-- htou
- fishy frenzy
- -1 or 2+47-47-1=0+0+0+1
- GitHub - glixzzy/blooket-hack: Multiple hacks that breaks the game
- 1050
- fx
- golden
- gloadal
- all the answers
- best kodi live tv
- spreadsho[
- gift
- -1" OR 3+854-854-1=0+0+0+1 --
- -1 OR 2+930-930-1=0+0+0+1
- truenas
- Automotive Lubricants Market
- keywords+AND+7652=7652
- 5767
- 盗刷信用卡商店
- virtual))) OR NOT 1220=3959#
- kahoot hack
- -1 or 3+446-446-1=0+0+0+1 --
- cabinet+maker+in+australia
- blooket+market+infininty+conis
- virtual or not 9584=4739
- cabinet maker in australia
- -1 or 2+786-786-1=0+0+0+1 --
- ketfgb0j
- download230413-2+32+13.rar
- 230413-2+32+13.rar
- chapter 20 samsung pt 2
- chapter 20 samsung
- greek iptv and 5423=5004-- xcpg
- https://www.ongraph.com/hire-nodejs-developers/