Linking images at one address, but loading them at another.

Richard Earnshaw rearnsha@arm.com
Fri Oct 26 07:12:00 GMT 2001


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).




More information about the Binutils mailing list