I have a file containing ARM v8 binary code. I want to disassemble the file and get the actual assembly code contained in it.
Assuming the file name is tmp.o I run:
/opt/linaro/A64-tools/bin/aarch64-linux-gnu-objdump -b binary -m AARCH64 -D tmp.o
This gives me the correct disassembly. However, the offset for branch instructions assumes that this code sits in address 0x00000000.
If I know that the code will sit in address 0x12345678 in memory:
- Is there a way to tell objdump to use this address as the start address?
If not, can I add some header to the binary file that says something like:
. = 0x12345678
Thanks in Advance..