Strange LMA/VMA behavior with regions

Alan Modra
Fri May 13 05:42:00 GMT 2011

On Fri, May 13, 2011 at 01:02:24PM +0800, Boyapati, Anitha wrote:
> I think the same logic given in para(1) is applicable to Case 2 discussed earlier. The relevant portion from linker script for Case 2 is:
> .text_os  : ALIGN(8) {
>   ...
> As I understand it, the address returned by ALIGN(8) has overridden both '>FLASH' and 'AT>FLASH'.

In your case 2, ALIGN(8) is *not* an address..  It's actually an
alignment applied to the output section VMA and LMA.

> While in case 1, ALIGN(8) has overridden only '>FLASH'. It is confusing to see different results.

Yes, this is confusing, and the ld info doc doesn't cover everything.

Alan Modra
Australia Development Lab, IBM

More information about the Binutils mailing list