How to disassemble one single function using objdump?

后端 未结 7 1067
囚心锁ツ
囚心锁ツ 2020-11-29 17:59

I\'ve got a binary installed on my system, and would like to look at the disassembly of a given function. Preferrably using objdump, but other solutions would b

7条回答
  •  执笔经年
    2020-11-29 18:45

    If you have a very recent binutils (2.32+), this is very simple.

    Passing --disassemble=SYMBOL to objdump will disassemble only the specified function. No need to pass the start address and the end address.

    LLVM objdump also has a similar option (--disassemble-symbols).

提交回复
热议问题