This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Relative expressions and ASSERT
On Mon, Dec 20, 2010 at 11:29:09PM +1030, Alan Modra wrote:
> On Fri, Dec 17, 2010 at 11:41:40AM -0800, H.J. Lu wrote:
> > The updated patch with a new testcase.
>
> I think this is a better solution, works on current binutils testsuite,
> the testcases in PR12066, and on kernel builds I tried. You can
> even describe linker behaviour without too much embarassment.
>
> I added an option to allow people to experiment with a consistent
> linker expression resolver by setting
> __ld_compatibility = 221 ;
> somewhere in their linker scripts. This treats numbers and absolute
> symbols as numbers everywhere, the most flexible arrangement since
> you can force a number to be an absolute address by using ABSOLUTE(),
> but you can't do the reverse.
I'd use a new syntax for setting the compatibility version, because
if a program relies on the new behavior, then the linker script ought
to be rejected by an old linker.
I have a wee bit of fear in maintaining more than one version...
--
Daniel Jacobowitz
CodeSourcery