This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Relative expressions and ASSERT
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