public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/41782]  New: lto/gold: -flto -user-linker-plugin dies with internal error in gold
@ 2009-10-21 11:21 edwintorok at gmail dot com
  2009-10-21 11:22 ` [Bug lto/41782] " edwintorok at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: edwintorok at gmail dot com @ 2009-10-21 11:21 UTC (permalink / raw)
  To: gcc-bugs

When trying to compile and link the attached not.i with lto the linker dies
with this error:
/usr/bin/ld: internal error in set_linkonce_size, at ../../gold/layout.h:250

This only occurs if I use -use-linker-plugin, so I think this may be a bug in
gcc's gold plugin, so I'm filing this as a gcc  bug (but it may also be a bug
in gold triggered by lto).

To reproduce:
$ /home/edwin/inst/bin/g++ -flto -c not.i -o not.o
$ /home/edwin/inst/bin/g++  -shared -flto -use-linker-plugin    not.o
/usr/bin/ld: internal error in set_linkonce_size, at ../../gold/layout.h:250
collect2: ld returned 1 exit status

$ /home/edwin/inst/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/edwin/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/edwin/inst/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --enable-lto --enable-languages=c,c++
--enable-gold : (reconfigured) ../gcc/configure --enable-lto
--enable-languages=c,c++ --enable-gold
Thread model: posix
gcc version 4.5.0 20091020 (experimental) (GCC)

$ ld -v
GNU gold (GNU Binutils for Debian 2.20) 1.9


-- 
           Summary: lto/gold: -flto -user-linker-plugin dies with internal
                    error in gold
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: edwintorok at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41782


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-08 19:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41782-4@http.gcc.gnu.org/bugzilla/>
2011-01-08 19:46 ` [Bug lto/41782] lto/gold: -flto -user-linker-plugin dies with internal error in gold hubicka at gcc dot gnu.org
2009-10-21 11:21 [Bug lto/41782] New: " edwintorok at gmail dot com
2009-10-21 11:22 ` [Bug lto/41782] " edwintorok at gmail dot com

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