Resetting LMA for new VMAs

Nathan Sidwell nathan@codesourcery.com
Sat Apr 5 12:27:00 GMT 2008


Alan Modra wrote:
> On Fri, Apr 04, 2008 at 12:30:05PM +0100, Nathan Sidwell wrote:
>> + 		    /* If there was a new VMA, set the LMA.  */
>> + 		    else if (os->addr_tree)
>> + 		      lma = dot;
> 
> This would break overlay handling.  addr_tree is always set for
> overlay sections, and for overlays you definitely do not want lma set
> to dot.

er, just before this new check is :

		    /* If this is an overlay, set the current lma to that
		       at the end of the previous section.  */
		    if (os->sectype == overlay_section)
		      lma = last->lma + last->size;

so your concern is already taken care of.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery



More information about the Binutils mailing list