https://sourceware.org/bugzilla/show_bug.cgi?id=23350
Martin Liska <mliska at suse dot cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #2 from Martin Liska <mliska at suse dot cz> --- (In reply to H.J. Lu from comment #1) > 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]$ I've just updated to GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.30.0.20180320-5 and the issue is gone. Thus closing as invalid. -- 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