<  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

lesstif.tistory.com/entry/c-name-mangling%EA%B3%BC-cfilt-%EB%AA%85%EB%A0%B9%EC%96%B4
www.linuxquestions.org/questions/linux-general-1/list-library-function-of-a-shared-library-so-438693/
cloudrain21.com/link-c-cplusplus-2-call-function

+ Recent posts