This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: question about ld and the 'AT' statement
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: <heinricg at esiee dot fr>
- Cc: binutils at sources dot redhat dot com
- Date: 15 Mar 2004 09:47:19 -0500
- Subject: Re: question about ld and the 'AT' statement
- References: <20040315092605.7FA083658FF@mail.esiee.fr>
<heinricg@esiee.fr> writes:
> when I use the "objdump -D" command on my object file, I can see that
> my initialised data appear at addresses from 0xd0018 (i.e. in RAM). I
> would have thought that they would be located after the _text segment,
> unless objddump displays the relocation addresses rather than the load
> addresses.
That is correct: objdump -D displays the relocation address (the VMA)
rather than the load address (the LMA). This is generally more
useful, since that is where the instructions will actually be
executing.
You can see the load address by using objdump -h.
Ian