https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487
--- Comment #2 from Rose Garcia <rose.garcia-eggl2fk at yopmail dot com> --- maybe related (fails also only on mips with -flto) libpcap 1.3.0 (compiled WITH -fPIC) http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz mips-linux-musl-gcc -L/media/3T/x-prefix/mips/lib -isystem /media/3T/x-prefix/mips/include -shared -Wl,-soname,libpcap.so.$MAJOR_VER -s -Wl,--gc-sections -Wl,-z,relro,-z,now -flto \ -o libpcap.so.$VER pcap-linux.o pcap-usb-linux.o pcap-can-linux.o pcap-netfilter-linux.o fad-gifc.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o bpf_image.o bpf_dump.o scanner.o grammar.o bpf_filter.o version.o -lnl-tiny -lnl ranlib libpcap.a /home/rose/musl-cross-4.8.3/mips-linux-musl/lib/gcc/mips-linux-musl/4.8.3/../../../../mips-linux-musl/bin/ld: /tmp/ccchmGhk.ltrans0.ltrans.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC /tmp/ccchmGhk.ltrans0.ltrans.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status from the looks of it it appears of if __gnu_local_gp could be a libgcc symbol.