[Patch, avr] Set data section's LMA to AT> text instead of end of .text

nick clifton nickc@redhat.com
Mon Nov 18 15:49:00 GMT 2013


Hi Senthil,

>    This patch sets the LMA for the .data section to the next available
>    address in the text region (AT> text), rather than ADDR(.text) + SIZE(.text).
>    This prevents address overlap errors from the linker if there are
>    other sections (unknown to the default linker script) that go into the text region.

[You mean SIZEOF(.text) not SIZE(.text)...]

This does not sound correct.  SIZEOF (.text) should return the size of 
the entire .text section, including any input sections that have been 
assigned there by the linker even though they were not mentioned in the 
linker script.  If you have a situation where the linker is not 
evaluating SIZEOF correctly then please report it - it is a bug.

Cheers
   Nick



More information about the Binutils mailing list