-g –extern-only 僅顯示外部符號。 Display only external symbols.
-C –demangle[=style] 將低階符號名稱解碼成用戶級名稱,除了去掉所開頭的下劃線之外,還使得C++函式名稱以可理解的方式顯示出來。 Decode (demangle) low-level symbol names into user-level names. Besides removing any initial underscore prepended by the system, this makes C++ function names readable. Different compilers have different mangling styles. The optional demangling style argument can be used to choose an appropriate demangling style for your compiler.
Symbol table '.dynsym' contains 198 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 000000000000bb90 0 SECTION LOCAL DEFAULT 9 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __errno_location@GLIBC_2.2.5 (2) 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND bind@GLIBC_2.2.5 (3) 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_@GLIBCXX_3.4 (4) 5: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND _ZTVSt9basic_iosIcSt11char_traitsIcEE@GLIBCXX_3.4 (4) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND randombytes_close 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND if_nametoindex@GLIBC_2.2.5 (3) 8: 0000000000000000 0 FUNC GLOBAL DEFAULT UND isxdigit@GLIBC_2.2.5 (3) 9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@GLIBCXX_3.4.21 (5) #...略
Symbol table '.dynsym' contains 198 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 000000000000bb90 0 SECTION LOCAL DEFAULT 9 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __errno_location@GLIBC_2.2.5 (2) 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND bind@GLIBC_2.2.5 (3) 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4 (4) 5: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND vtable for std::basic_ios<char, std::char_traits<char> >@GLIBCXX_3.4 (4) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND randombytes_close 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND if_nametoindex@GLIBC_2.2.5 (3) 8: 0000000000000000 0 FUNC GLOBAL DEFAULT UND isxdigit@GLIBC_2.2.5 (3) 9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21 (5) #...略
0000000000601038 B __bss_start 0000000000601028 D __data_start 0000000000601028 W data_start 0000000000601030 D __dso_handle 0000000000601038 D _edata 0000000000601040 B _end 00000000004005e4 T _fini w __gmon_start__ 00000000004003c8 T _init 00000000004005f0 R _IO_stdin_used w _ITM_deregisterTMCloneTable w _ITM_registerTMCloneTable w _Jv_RegisterClasses 00000000004005e0 T __libc_csu_fini 0000000000400570 T __libc_csu_init U __libc_start_main@@GLIBC_2.2.5 000000000040054c T main U printf@@GLIBC_2.2.5 0000000000400430 T _start 0000000000601038 D __TMC_END__ 0000000000400526 T myprint(int*)