This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 5 Dec 2010 18:23:59 +0000
- Subject: [Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin
- Auto-submitted: auto-generated
- References: <bug-42690-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690
--- Comment #39 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-05 18:23:55 UTC ---
(In reply to comment #38)
> (In reply to comment #36)
>
> $ touch empty.c
> $ gcc -nodefaultlibs -r -flto -fuse-linker-plugin empty.c
> /usr/local/bin/ld: BFD (GNU Binutils) 2.21.51.20101204 assertion fail
> ../../binutils-2.21.51/bfd/elflink.c:9661
> /usr/local/bin/ld: BFD (GNU Binutils) 2.21.51.20101204 assertion fail
> ../../binutils-2.21.51/bfd/elflink.c:7972
> [...]
Please try:
http://sourceware.org/ml/binutils/2010-12/msg00197.html