Re: gold and shared objects with gcc 4.1.2

2009-01-16 Thread Ian Lance Taylor
Roland Baumann writes: > this patch indeed fixes my problem. Thanks a lot. You're welcome. Thanks for reporting the bug. > Actually, I am wondering whether it makes sense to use "-s" and > "-shared" together. What information stays in the shared object that I > am still able to link it? An EL

Re: gold and shared objects with gcc 4.1.2

2009-01-16 Thread Roland Baumann
Hi Ian, this patch indeed fixes my problem. Thanks a lot. Actually, I am wondering whether it makes sense to use "-s" and "-shared" together. What information stays in the shared object that I am still able to link it? Roland Ian Lance Taylor wrote: Roland Baumann writes: I compile this

Re: gold and shared objects with gcc 4.1.2

2009-01-15 Thread Ian Lance Taylor
Roland Baumann writes: >>> >>> I compile this with: >>> g++-4.1.2 -c test_shared.cc -o test_shared.o g++-4.1.2 -B -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 outpu

Re: gold and shared objects with gcc 4.1.2

2009-01-15 Thread Roland Baumann
I compile this with: g++-4.1.2 -c test_shared.cc -o test_shared.o g++-4.1.2 -B -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?

Re: gold and shared objects with gcc 4.1.2

2009-01-14 Thread Ian Lance Taylor
Roland Baumann writes: > I have a problem with gcc 4.1.2 and the gold linker (from binutils > 2.19). We build shared objects with options "-s" and "-shared" > together. This leads to assertions in the gold linker. In most cases I > see > > .../gold/real-ld: internal error in get_output_view, at >

gold and shared objects with gcc 4.1.2

2009-01-14 Thread Roland Baumann
Hi, I have a problem with gcc 4.1.2 and the gold linker (from binutils 2.19). We build shared objects with options "-s" and "-shared" together. This leads to assertions in the gold linker. In most cases I see .../gold/real-ld: internal error in get_output_view, at ...src/binutils-2.19/gold/ou