[Bug ld/12320] ld --as-needed links libgcc_s.so.1 unnecessarily on Solaris 11
http://sourceware.org/bugzilla/show_bug.cgi?id=12320 --- Comment #6 from Rainer Orth ro at CeBiTec dot Uni-Bielefeld.DE 2011-02-16 17:51:03 UTC --- --- Comment #5 from Alan Modra amodra at gmail dot com 2011-02-15 23:54:45 UTC --- So http://sourceware.org/ml/binutils/2010-03/msg00017.html broke --as-needed. I did ask why you wanted to follow the mistakes of the Sun linker.. Are you certain that the Solaris ABI requires these symbols to be dynamic? Yes: every versioned symbol (and this includes the base version) needs to be in .dynamic. Rainer -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12320] ld --as-needed links libgcc_s.so.1 unnecessarily on Solaris 11
http://sourceware.org/bugzilla/show_bug.cgi?id=12320 --- Comment #2 from Rainer Orth ro at TechFak dot Uni-Bielefeld.DE 2011-02-15 10:20:32 UTC --- Created attachment 5241 -- http://sourceware.org/bugzilla/attachment.cgi?id=5241 testcase -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12320] ld --as-needed links libgcc_s.so.1 unnecessarily on Solaris 11
http://sourceware.org/bugzilla/show_bug.cgi?id=12320 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|WAITING |NEW --- Comment #3 from Alan Modra amodra at gmail dot com 2011-02-15 12:01:45 UTC --- In crt1.o 15: 0 NOTYPE WEAK DEFAULT UND _DYNAMIC In libgcc_s.so 154: 00018fd0 0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC libgcc_s.so provides a symbol that is undefined at the time libgcc_s.so is linked, and thus libgcc_s.so is marked as needed. So, why does your libgcc_s.so export _DYNAMIC (and _GLOBAL_OFFSET_TABLE_)? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12320] ld --as-needed links libgcc_s.so.1 unnecessarily on Solaris 11
http://sourceware.org/bugzilla/show_bug.cgi?id=12320 --- Comment #4 from Rainer Orth ro at CeBiTec dot Uni-Bielefeld.DE 2011-02-15 12:44:52 UTC --- --- Comment #3 from Alan Modra amodra at gmail dot com 2011-02-15 12:01:45 UTC --- In crt1.o 15: 0 NOTYPE WEAK DEFAULT UND _DYNAMIC In libgcc_s.so 154: 00018fd0 0 OBJECT GLOBAL DEFAULT ABS _DYNAMIC libgcc_s.so provides a symbol that is undefined at the time libgcc_s.so is linked, and thus libgcc_s.so is marked as needed. So, why does your libgcc_s.so export _DYNAMIC (and _GLOBAL_OFFSET_TABLE_)? Because that's what the Solaris 2 ABI requires for shared objects, cf. ld/emultempl/solaris2.em (elf_solaris2_before_allocation). Rainer -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12320] ld --as-needed links libgcc_s.so.1 unnecessarily on Solaris 11
http://sourceware.org/bugzilla/show_bug.cgi?id=12320 --- Comment #5 from Alan Modra amodra at gmail dot com 2011-02-15 23:54:45 UTC --- So http://sourceware.org/ml/binutils/2010-03/msg00017.html broke --as-needed. I did ask why you wanted to follow the mistakes of the Sun linker.. Are you certain that the Solaris ABI requires these symbols to be dynamic? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12320] ld --as-needed links libgcc_s.so.1 unnecessarily on Solaris 11
http://sourceware.org/bugzilla/show_bug.cgi?id=12320 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|NEW |WAITING CC||amodra at gmail dot com --- Comment #1 from Alan Modra amodra at gmail dot com 2011-02-14 06:12:03 UTC --- Please attach main.o, crt1.o, crti.o, libgcc.a, libgcc_s.so and libgcc_s.so.1 (if it isn't just a link to libgcc_s.so), and I'll take a look. I don't think I'll need libc.so.1 and libm.so.2 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils