When I run this command
otool -t binary
otool
will correctly dump the text section of binary
. E.g.
0000000100002100 55 48 89 e5 41 56 53 48 8b 35 32 24 54 00 4c 8b
:
But when I run this command:
otool -tvV binary
otool
skips a huge part of the text section:
00000001003a32ce pushq %rbp
:
The first 3805646 bytes are simply skipped and not disassembled. If I open the binary in lldb
, I can disassemble code at the skipped addresses just fine.
Has anyone ever made similar experiences? Does otool
maybe have an internal size limit and truncates sections beyond that limit? Has anyone discovered a work-around or knows a comparable tool that is available for free?
I tried to disassemble the whole binary with lldb
:
lldb binary
(lldb) dis -s 0x100002100 -e ...
Setting -e
to the address of the last byte in the text section but that doesn't work either. Actually lldb
stops output after disassembling about 5000 bytes of the text section.