public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rose.garcia-eggl2fk at yopmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/61487] LTO breaks on mips with wireless-tools 0.29
Date: Thu, 12 Jun 2014 16:45:00 -0000	[thread overview]
Message-ID: <bug-61487-4-DqD2Uelcj8@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61487-4@http.gcc.gnu.org/bugzilla/>

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.


  parent reply	other threads:[~2014-06-12 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-12 16:18 [Bug lto/61487] New: " rose.garcia-eggl2fk at yopmail dot com
2014-06-12 16:21 ` [Bug lto/61487] " rose.garcia-eggl2fk at yopmail dot com
2014-06-12 16:45 ` rose.garcia-eggl2fk at yopmail dot com [this message]
2014-06-13  9:43 ` rguenth at gcc dot gnu.org
2014-06-13 10:26 ` rose.garcia-eggl2fk at yopmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-61487-4-DqD2Uelcj8@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).