Re: gold and shared objects with gcc 4.1.2
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 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? That will show precisely how the linker is being invoked. Here it comes: Thanks. Unfortunately I still can't recreate it. I took a closer look at the code, and I found a possible problem if there are local symbols which have to go into the dynamic symbol table. I committed this patch, which may fix your problem. Ian 2009-01-15 Ian Lance Taylor * object.cc (Sized_relobj::write_local_symbols): Don't write out local symbols when stripping all symbols. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: gold and shared objects with gcc 4.1.2
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 ELF shared object has two symbol tables: the dynamic symbol table and the normal symbol table. The -s option removes the normal symbol table. The dynamic symbol table contains whatever is needed for dynamic linking. Ian ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/9749] The section is put not in order
--- Additional Comments From uzytkownik2 at gmail dot com 2009-01-16 21:32 --- The test case: http://github.com/uzytkownik/nios/tree/master -- http://sourceware.org/bugzilla/show_bug.cgi?id=9749 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/6027] Bootstrap of combined gcc + binutils, with --enable-shared, with sysroot fails
--- Additional Comments From amodra at bigpond dot net dot au 2009-01-17 02:37 --- Sorry, you haven't presented any evidence of a sysroot ld bug. All you've really shown is that bootstrapping toolchains is difficult. The patch in http://sourceware.org/bugzilla/show_bug.cgi?id=4966 is definitely wrong. -- What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID http://sourceware.org/bugzilla/show_bug.cgi?id=6027 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils