https://sourceware.org/bugzilla/show_bug.cgi?id=17219

--- Comment #2 from Manuel Lauss <manuel.lauss at gmail dot com> ---
native builds are also affected: for example gcc-4.9.1 built natively fails
with
libtool: link: mipsel-softfloat-linux-gnu-gcc -shared  .libs/lto-plugin.o   
-Wl,--as-needed  -static-libgcc -Wl,-O1 ../libiberty/pic/libiberty.a  
-Wl,-soname -Wl,liblto_plugin.so.0 -o .libs/liblto_plugin.so.0.0.0
/usr/lib/gcc/mipsel-softfloat-linux-gnu/4.9.1/../../../../mipsel-softfloat-linux-gnu/bin/ld:
error: .libs/lto-plugin.o: relocation 4 against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
/usr/lib/gcc/mipsel-softfloat-linux-gnu/4.9.1/../../../../mipsel-softfloat-linux-gnu/bin/ld:
error: .libs/lto-plugin.o: relocation 5 against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
/usr/lib/gcc/mipsel-softfloat-linux-gnu/4.9.1/../../../../mipsel-softfloat-linux-gnu/bin/ld:
error: .libs/lto-plugin.o: relocation 5 against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
/usr/lib/gcc/mipsel-softfloat-linux-gnu/4.9.1/../../../../mipsel-softfloat-linux-gnu/bin/ld:
error: .libs/lto-plugin.o: relocation 4 against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
/usr/lib/gcc/mipsel-softfloat-linux-gnu/4.9.1/../../../../mipsel-softfloat-linux-gnu/bin/ld:
error: .libs/lto-plugin.o: relocation 5 against `stderr' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/mipsel-softfloat-linux-gnu/4.9.1/../../../../mipsel-softfloat-linux-gnu/bin/ld:
error: non-dynamic relocations refer to dynamic symbol stderr

and so on.  Again, reverting the above mentioned commit fixes everything.

-- 
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

Reply via email to