Relative expressions and ASSERT

Daniel Jacobowitz dan@codesourcery.com
Wed Aug 11 23:11:00 GMT 2010
On Wed, Aug 11, 2010 at 11:53:30AM +0930, Alan Modra wrote:
> On Tue, Aug 10, 2010 at 05:16:54PM -0400, Daniel Jacobowitz wrote:
> > Kazu has discovered a really perverse behavior of linker script
> 
> Yes, current behaviour is horrible.
> 
> > IMO, it would be plausible to extend this exception to at least
> 
> We're in a hole, let's not dig any deeper..  I think we made a mistake
> in treating constants as section relative in output sections.  It
> would be better to treat all constants as absolute, and make
> exceptions for cases where we want a relative result, probably just
> assignment to symbols in an output section.

I'm fine with this - although, wondering what linker scripts it
might break.  I took a look, though, and I don't think I can implement
this without breakage everywhere.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list