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: Resetting LMA for new VMAs


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


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