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: 24 September 2008 16:05
> To: Robert Norton
> Cc: binutils
> Subject: Re: PROVIDE in linker script broken for expressions
> with more than two references
>
> On Wed, Sep 24, 2008 at 04:54:01AM -0700, Robert Norton wrote:
> > There seems to be a bug in the way that ld handles PROVIDE.
> If there are more than two symbols referenced in an
> expression which are defined using PROVIDE then the third is
> erroneously flagged as undefined. For example:
> [snip]
>
> 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.
Thanks!
Robert