This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: objdump -D on binary files and 64-bit address spaces


On Tue, Sep 24, 2013 at 04:50:05PM -0700, Cary Coutant wrote:
> When running objdump -D on a binary file (say, a dump directly from
> memory of dynamically-generated code), you can use the -m and -M
> options to specify the target architecture, but that's not quite
> enough. If the --adjust-vma option is used to place the dumped code at
> a large (> 2^32) address, objdump still prints addresses truncated to
> 32 bits. For example:
> 
> $ objdump  -D -b binary -m i386 -M x86-64
> --adjust-vma=0x00007f9fa10747e0 --start-address=0x00007f9fa10c7f90
> --stop-address=0x00007f9fa10c88b0 --no-show-raw dump

Try using -m i386:x86-64

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]