Command Line to see the contents Shared Object Module(lib*.so)

前端 未结 3 469
醉酒成梦
醉酒成梦 2021-02-01 15:34

What is the command line to see the contents of a Shared Object module (lib*.so)?

Like how we use:

ar -t lib*.a

for archives(lib*.a) an

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-01 16:29

    I think nm -D is what you're looking for.

    $ nm -D /usr/lib/libpng.so
    ...
    00000000000058f0 T png_reset_zstream
    000000000000d420 T png_save_int_32
    000000000000d450 T png_save_uint_16
    000000000000d3f0 T png_save_uint_32
    0000000000007810 T png_set_IHDR
    0000000000007500 T png_set_PLTE
    000000000000ce20 T png_set_add_alpha
    0000000000006670 T png_set_asm_flags
    0000000000006970 T png_set_bKGD
    000000000001a740 T png_set_background
    ...
    

提交回复
热议问题