bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gold and shared objects with gcc 4.1.2


From: Roland Baumann
Subject: Re: gold and shared objects with gcc 4.1.2
Date: Thu, 15 Jan 2009 17:42:02 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081209)


I compile this with:

g++-4.1.2 -c test_shared.cc -o test_shared.o
g++-4.1.2 -B <path_to_gold> -shared -s test_shared.o -o test_shared.so

I'm not able to recreate this problem with either binutils 2.19 or
with the development version.  Can you post the output of your -shared
command line with the -v option?  That will show precisely how the
linker is being invoked.


Here it comes:


Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /local2/soc_ski/swtools_2010.01/build/src/gcc-4.1.2/configure --disable-shared --disable-nls --enable-languages=c++ --with-gnu-as --with-gnu-ld --enable-__cxa_atexit --prefix=/swtools/2010.01/linux/gcc-4.1.2
Thread model: posix
gcc version 4.1.2

/misc/swtools/2010.01/linux/gcc-4.1.2/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.2/collect2 --eh-frame-hdr -m elf_i386 -shared -o test_shared.so -s /usr/lib/crti.o /misc/swtools/2010.01/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/crtbeginS.o -L/swtools/2010.01/linux/gold -L/misc/swtools/2010.01/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2 -L/misc/swtools/2010.01/linux/gcc-4.1.2/bin/../lib/gcc -L/swtools/2010.01/linux/gcc-4.1.2/lib/gcc/i686-pc-linux-gnu/4.1.2 -L/misc/swtools/2010.01/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/lib -L/swtools/2010.01/linux/gcc-4.1.2/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/lib -L/misc/swtools/2010.01/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../.. -L/swtools/2010.01/linux/gcc-4.1.2/lib/gcc/i686-pc-linux-gnu/4.1.2/../../.. test_shared.o -lstdc++ -lm -lgcc -lc -lgcc /misc/swtools/2010.01/linux/gcc-4.1.2/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/crtn.o /swtools/2010.01/linux/gold/real-ld: internal error in write_local_symbols, at /local2/soc_ski/swtools_2010.01/build/src/binutils-2.19/gold/object.cc:1471
collect2: ld returned 1 exit status


Also, for which target did you configure?


Not quite sure what you mean. I compiled on Linux (2.6.9-34) and the targets for gold are:

/swtools/2010.01/linux/gold/ld -V
GNU gold (GNU Binutils 2.19) 1.7
  Supported targets:
   elf32-i386
   elf64-x86-64
   elf64-sparc
   elf32-sparc
   elf64-powerpcle
   elf64-powerpc
   elf32-powerpcle
   elf32-powerpc



Thanks,
Roland







reply via email to

[Prev in Thread] Current Thread [Next in Thread]