This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Relative expressions and ASSERT
- From: Alan Modra <amodra at gmail dot com>
- To: Daniel Jacobowitz <dan at codesourcery dot com>
- Cc: binutils at sourceware dot org, Kazu Hirata <kazu at codesourcery dot com>
- Date: Wed, 11 Aug 2010 11:53:30 +0930
- Subject: Re: Relative expressions and ASSERT
- References: <20100810211654.GN6088@caradoc.them.org>
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.
--
Alan Modra
Australia Development Lab, IBM