PROVIDE in linker script broken for expressions with more than two references

Robert Norton rnorton@broadcom.com
Wed Sep 24 15:09:00 GMT 2008


> -----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



More information about the Binutils mailing list