最終更新:2019-09-12 (木) 16:44:59 (3d)  

nm はてなブックマークを見る
Top / nm

nm - list symbols from object files

オブジェクトファイルに含まれるシンボル(クラス関数など)を表示する

nm library.a [--demangle]

対象

man

  • #geshi{{
    }}

  • $ nm hello
    0000000000601038 B __bss_start
    0000000000601038 b completed.7594
    0000000000601028 D __data_start
    0000000000601028 W data_start
    0000000000400460 t deregister_tm_clones
    00000000004004e0 t __do_global_dtors_aux
    0000000000600e18 t __do_global_dtors_aux_fini_array_entry
    0000000000601030 D __dso_handle
    0000000000600e28 d _DYNAMIC
    0000000000601038 D _edata
    0000000000601040 B _end
    00000000004005c4 T _fini
    0000000000400500 t frame_dummy
    0000000000600e10 t __frame_dummy_init_array_entry
    0000000000400708 r __FRAME_END__
    0000000000601000 d _GLOBAL_OFFSET_TABLE_
                     w __gmon_start__
    00000000004005e4 r __GNU_EH_FRAME_HDR
    00000000004003c8 T _init
    0000000000600e18 t __init_array_end
    0000000000600e10 t __init_array_start
    00000000004005d0 R _IO_stdin_used
                     w _ITM_deregisterTMCloneTable
                     w _ITM_registerTMCloneTable
    0000000000600e20 d __JCR_END__
    0000000000600e20 d __JCR_LIST__
                     w _Jv_RegisterClasses
    00000000004005c0 T __libc_csu_fini
    0000000000400550 T __libc_csu_init
                     U __libc_start_main@@GLIBC_2.2.5
    0000000000400526 T main
                     U puts@@GLIBC_2.2.5
    00000000004004a0 t register_tm_clones
    0000000000400430 T _start
    0000000000601038 D __TMC_END__

関連