[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binutils
Subject:    Re: RFA: objdump -D on binary files and 64-bit address spaces
From:       Alan Modra <amodra () gmail ! com>
Date:       2013-09-27 4:39:15
Message-ID: 20130927042715.GB30589 () bubble ! grove ! modra ! org
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic