< From object >
$ nm test_func.o
000000000000000d r __func__.2044
U printf
0000000000000000 T test_func
$ nm call.o
U _Z9test_funcPKc
0000000000000000 T main
해설>
00000000000000 | Address |
T U |
obj or lib 내부에 정의되어 있는 obj or lib 외부에 정의되어 있는 |
_Z9test_funcPKc | mangling 된 function name |
명령어들
from object | nm test_func.o |
from static lib | nm -a /lib/mylib.so.1 |
from shared lib | nm -D /lib/mylib.so.1 |
DeMangling | nm -CD /lib/mylib.so.1 nm -Ca /lib/mylib.so.1 nm -C test_func.o |
ref