Hi I am trying to find the absolute address of a symbol(like a function name) in a .so file.
I tried nm -gDC myLib.so
and objdump -TC myLib.so
, but I didn't find the address.
Symbol table '.symtab' contains 91 entries:
59: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZNSolsEi@@GLIBCXX_3.4
60: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZSt16__throw_bad_castv@@GLIBCXX_3.4
61: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZNSo9_M_insertIlEERSoT_@@GLIBCXX_3.4.9
62: 0000000000000000 0 FUNC GLOBAL DEFAULT UND close@@GLIBC_2.2.5
63: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__
64: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
65: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZNKSt5ctypeIcE13_M_widen_initEv@@GLIBCXX_3.4.11
66: 0000000000000fe0 236 FUNC GLOBAL DEFAULT 10 _ZN4test13overwriteFuncEiml
67: 00000000000013e0 0 FUNC GLOBAL DEFAULT 11 _fini
68: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZNSt8ios_base4InitC1Ev@@GLIBCXX_3.4
69: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __cxa_atexit@@GLIBC_2.2.5
70: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZNSt8ios_base4InitD1Ev@@GLIBCXX_3.4
I got something like this. Could someone tell me how to find the symbol(function name) absolute address in .so file?
Thanks