PATCH: PR ld/14272: Mark the plugin symbol undefined

Alan Modra amodra@gmail.com
Sat Feb 7 02:21:00 GMT 2015


On Fri, Feb 06, 2015 at 04:23:21AM -0800, H.J. Lu wrote:
> It turns out that existing tests show PR ld/12365. The "plugin claimfile
> resolve symbol" and "plugin claimfile replace symbol" tests expect
> 
> `func' referenced in section `.text.startup' of tmpdir/main.o: defined
> in discarded section `.text' of tmpdir/func.o (symbol from plugin)
> 
> Since plugin never provides func, the error message should be
> 
> tmpdir/main.o: In function `main':
> main.c:(.text.startup+0x15): undefined reference to `func'

I disagree with this.  You've made an error message much less
informative as it now does not even give a clue that some lto plugin
problem caused the link error.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list