[PATCH][GAS/ARM] Better handling of difference between a symbol and an undefined symbol.

Alan Modra amodra@gmail.com
Thu Mar 17 02:06:00 GMT 2011


On Wed, Mar 16, 2011 at 02:31:44PM -0700, H.J. Lu wrote:
> On Tue, Sep 28, 2010 at 11:49 PM, Alan Modra <amodra@gmail.com> wrote:
> > gas/
> >        * expr.c (expr): Correct returned segment value.
> > gas/testsuite/
> >        * gas/all/fwdexp.d, * gas/all/fwdexp.s: New test.
> >        * gas/all/gas.exp: Run it.
> 
> This caused:
> 
> http://www.sourceware.org/bugzilla/show_bug.cgi?id=12589

I think the above patch is correct.  Do you see a problem with it?

What it does do is expose other bugs in gas, in this case that
read.c:pseudo_set throws away the correct segment returned from expr()
and instead replaces it with expr_section.  Trouble is, looks like
using the correct segment there exposes yet more problems.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list