This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Strange LMA/VMA behavior with regions
>
>On Fri, May 13, 2011 at 09:44:43AM +0530, Anitha Boyapati wrote:
>> In the process of verifying further, I have changed the linker script
>> by removing 'AT>' , still same output is observed.
>>
>> 1 .text_os 00000008 80000008 80000002 00000408 2**3
>> CONTENTS, ALLOC, LOAD, READONLY, CODE
>>
>> I am not specifying any LMA in this case but still I get the current
>> location for the LMA (Is this also expected?)
>
>Now this probably is a bug, introduced by
>http://sourceware.org/ml/binutils/2009-04/msg00068.html
>Fix as follows.
>
> * ldlang.c (lang_leave_output_section_statement): Don't copy
> previous lma_region if given address.
Thanks for the fix too. Will get back to you with the results (or maybe more questions) :-)
Anitha