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
objdump
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.
--disassemble=SYMBOL
LLVM objdump also has a similar option (--disassemble-symbols).
--disassemble-symbols