This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Disassembly with odd sized section
Hi Subhash,
> Well, when --disassemble-zeroes switch is used, problem in text
> section is solved but if data section is odd sized, It will still
> gives " Address 0x2 is out of bounds." message. Because disassembler
> will try to disassemble last byte.
Right - and there can be no valid instruction that is only one byte
long (or one, two or three bytes for ARM mode), so the disassembler
complains. This is the price you pay for trying to disassemble data.
Is this really a problem for you ? If you want to see the full
contents of the .data section just use the -s switch, eg:
objdump -z -s -j .data test.o
Cheers
Nick