Comparing binaries in Source Code space
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sat Apr 1 02:39:00 GMT 2000
> GDB does not seem to be enough. How can you relate the byte offset within a
> binary to the actual code location?
I don't know a simple procedure, but the following might work:
1. Use objdump -h to determine the file offsets of each section.
2. Check whether it really is in a code section. If not, you may need
to reconsider your analysis so far.
3. Translate the file offset to a VMA offset.
4. Use objdump --disassemble to display all code sections in
disassembly, and look for the VMA offset.
Hope this helps,
Martin
More information about the Gcc-help
mailing list