https://sourceware.org/bugzilla/show_bug.cgi?id=23350
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-07-02 CC| |hjl.tools at gmail dot com Ever confirmed|0 |1 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- Which version of ld are you using? Master branch works for me: hjl@gnu-cfl-1 pr23350]$ make clean rm -f *.o *.so [hjl@gnu-cfl-1 pr23350]$ cat x.c int wrl; int main() { } [hjl@gnu-cfl-1 pr23350]$ cat y.c int wrl; int wrl2; [hjl@gnu-cfl-1 pr23350]$ make /usr/gcc-7.2.1-x32/bin/gcc -flto -O2 -c -o x.o x.c /usr/gcc-7.2.1-x32/bin/gcc -flto -O2 -c -o y.o y.c ar --plugin `/usr/gcc-7.2.1-x32/bin/gcc -print-prog-name=liblto_plugin.so` -rusc liby.a y.o /usr/gcc-7.2.1-x32/bin/gcc -o x x.o liby.a liby.a [hjl@gnu-cfl-1 pr23350]$ -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils