PROVIDE in linker script broken for expressions with more than two references
Alan Modra
amodra@bigpond.net.au
Wed Sep 24 15:05:00 GMT 2008
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
More information about the Binutils
mailing list