This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: PROVIDE in linker script broken for expressions with more than two references
> -----Original Message-----
> From: Alan Modra [mailto:amodra@bigpond.net.au]
> Sent: 25 September 2008 03:34
> To: Robert Norton; binutils
> Subject: Re: PROVIDE in linker script broken for expressions
> with more than two references
>
> On Thu, Sep 25, 2008 at 12:34:59AM +0930, Alan Modra wrote:
> > The problem is that fold_binary doesn't evaluate rhs if the lhs is
> > invalid. I have a patch I'll commit in the morning after some
> > testing.
>
> Like so. Note -w diff. The actual patch committed reformats the
> function properly.
I tested the patch and it appears to work. Thanks!
For your information I tried to provoke an analagous bug for the ternary operator and couldn't (before or after patch).
Robert