Strange LMA/VMA behavior with regions
Alan Modra
amodra@gmail.com
Thu May 12 23:34:00 GMT 2011
On Thu, May 12, 2011 at 07:38:59PM +0530, Anitha Boyapati wrote:
> > On Wed, May 11, 2011 at 12:50:31PM +0530, Abnikant Singh wrote:
> >> Â .text_os ALIGN(8) :
> >
> > This says to set the address of the output section .text_os. Â When you
> > set the address, any input section alignment is ignored. Â This happens
>
> I agree that ALIGN() overrides input section alignment. But if we set
> address for VMA using ALIGN(), should it affect LMA too? I think it
> should not.
That would be inconsistent. If you specify an address for an output
section it most certainly should affect both VMA and LMA. After all,
LMA is equal to VMA in the usual case. I see no reason whatsoever to
treat an address that happens to use ALIGN any differently from any
other address.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list