Created attachment 6869 [details] Testcase With this testcase, ld.gold gives: main.o: reference to foo foo.o: definition of foo But nothing from ld.bfd.
A patch is posted at http://sourceware.org/ml/binutils/2013-02/msg00198.html
CVSROOT: /cvs/src Module name: src Changes by: hjl@sourceware.org 2013-02-16 17:50:21 Modified files: ld : ChangeLog plugin.c Log message: Also trace symbol from the IR bfd PR ld/15141 * plugin.c (plugin_notice): Also trace symbol from the IR bfd. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2555&r2=1.2556 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/plugin.c.diff?cvsroot=src&r1=1.47&r2=1.48
Fixed.