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
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.
--
Alan Modra
Australia Development Lab, IBM