This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange LMA/VMA behavior with regions


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) {
>   ...
> } >FLASH AT>FLASH
> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]