This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Linking images at one address, but loading them at another.
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Subject: Re: Linking images at one address, but loading them at another.
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 26 Oct 2001 15:12:03 +0100
- cc: Richard dot Earnshaw at arm dot com, binutils at sources dot redhat dot com
- Organization: ARM Ltd.
- Reply-To: Richard dot Earnshaw at arm dot com
nickc@cambridge.redhat.com said:
> Shouldn't the loader be loading the segment to is physical address
> (aka LMA) rather than its virtual address (aka VMA) ?
I've done some more digging, the ARM ELF spec
http://www.arm.com/armwww.ns4/img/12-Technical+Specs-ARM+ELF+Specification+PDF/$File/ARMELFA08.pdf?OpenElement
is quite explicit about this in section 4.6 -- the p_vaddr field says where
the image should be loaded, and the p_paddr field is ignored (and set to
zero).