[Bug ld/13183] BFD linker does not work correctly with thin archives and LTO
http://sourceware.org/bugzilla/show_bug.cgi?id=13183 --- Comment #3 from cvs-commit at gcc dot gnu.org 2011-09-15 16:03:10 UTC --- CVSROOT:/cvs/src Module name:src Changes by:h...@sourceware.org2011-09-15 16:03:03 Modified files: ld : ChangeLog ldmain.c Log message: Support thin archive member for LTO. 2011-09-15 Dmitry Gorbachev PR ld/13183 * ldmain.c (add_archive_element): Support thin archive member for LTO. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2368&r2=1.2369 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldmain.c.diff?cvsroot=src&r1=1.159&r2=1.160 -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13183] BFD linker does not work correctly with thin archives and LTO
http://sourceware.org/bugzilla/show_bug.cgi?id=13183 Dmitry Gorbachev changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #4 from Dmitry Gorbachev 2011-09-15 16:51:25 UTC --- Thanks! -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/1021] linking in mozilla fails
http://sourceware.org/bugzilla/show_bug.cgi?id=1021 Andrew Stormont changed: What|Removed |Added CC||andyjstormont at googlemail ||dot com --- Comment #15 from Andrew Stormont 2011-09-15 21:28:27 UTC --- There are two issues here. The original problem (see comment 1) mozilla/dist/bin/libnspr4.so: undefined reference to `fcntl@SUNW_0.9' mozilla/dist/bin/libnspr4.so: undefined reference to `dlsym@SUNW_0.7' mozilla/dist/bin/libnspr4.so: undefined reference to `pthread_join@SUNW_0.9' mozilla/dist/bin/libnspr4.so: undefined reference to `select@SUNW_1.2' mozilla/dist/bin/libnspr4.so: undefined reference to `rw_unlock@SUNW_0.9' mozilla/dist/bin/libnspr4.so: undefined reference to `pthread_attr_destroy@SUNW_ Was due to the fact that bfd ignored versions on all absolute symbols. This is fixed. The second problem (see comment 12) /opkg/bin/gcc -shared -Wl,-h,libplds4.so,-z,combreloc,-z,defs -o libplds4.so -Wl ,--version-script,./pldsmap.sun ./plarena.o ./plhash.o ./plvrsion.o -L/u/projec ts/tmp/opkg/mozilla/dist/lib -lnspr4 -lc /opkg/bin/ld: /u/projects/tmp/opkg/mozilla/dist/lib/libnspr4.so: open64: invalid version 23 (max 7) /u/projects/tmp/opkg/mozilla/dist/lib/libnspr4.so: could not read symbols: Bad v alue This is due the the fact that bfd gets confused and writes a duff open64 symbol to libnspr4.so which causes then next part of the build to fail. I've tried to build with and without mapfile and it makes no difference. And this is with the lastest binutils from git. Here is the output from readelf: # readelf -s ./mozilla/nsprpub/dist/bin/libnspr4.so | grep open64 536: 240 FUNCGLOBAL DEFAULT ABS open64@@NSPR_4.8.9 1352: 240 FUNCGLOBAL DEFAULT ABS open64@@SUNW_1.1 This is what it looks like on Linux: # readelf -s /usr/lib/libnspr4.so | grep open64 84: 0 FUNCGLOBAL DEFAULT UND open64@GLIBC_2.2.5 (3) -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12975] --gc-sections doesn't remove symbols hidden with version scripts
http://sourceware.org/bugzilla/show_bug.cgi?id=12975 H.J. Lu changed: What|Removed |Added URL|http://sourceware.org/ml/bi |http://sourceware.org/ml/bi |nutils/2011-09/msg00079.htm |nutils/2011-09/msg00089.htm |l |l CC||hjl.tools at gmail dot com --- Comment #3 from H.J. Lu 2011-09-15 21:30:33 UTC --- An updated patch is posted at http://sourceware.org/ml/binutils/2011-09/msg00089.html -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/1021] linking in mozilla fails
http://sourceware.org/bugzilla/show_bug.cgi?id=1021 Andrew Stormont changed: What|Removed |Added CC||amu at alum dot mit.edu --- Comment #16 from Andrew Stormont 2011-09-15 22:11:34 UTC --- *** Bug 2524 has been marked as a duplicate of this bug. *** -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/2524] Solaris versioning glitches when building shared libraries against static ones
http://sourceware.org/bugzilla/show_bug.cgi?id=2524 Andrew Stormont changed: What|Removed |Added Status|WAITING |RESOLVED CC||andyjstormont at googlemail ||dot com Resolution||DUPLICATE --- Comment #6 from Andrew Stormont 2011-09-15 22:11:34 UTC --- Marking as duplicate of 1021. *** This bug has been marked as a duplicate of bug 1021 *** -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12975] --gc-sections doesn't remove symbols hidden with version scripts
http://sourceware.org/bugzilla/show_bug.cgi?id=12975 Dmitry Gorbachev changed: What|Removed |Added CC||d.g.gorbachev at gmail dot ||com --- Comment #4 from Dmitry Gorbachev 2011-09-16 01:08:53 UTC --- (In reply to comment #3) Thank you! -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12975] --gc-sections doesn't remove symbols hidden with version scripts
http://sourceware.org/bugzilla/show_bug.cgi?id=12975 --- Comment #5 from cvs-commit at gcc dot gnu.org 2011-09-16 01:15:23 UTC --- CVSROOT:/cvs/src Module name:src Changes by:h...@sourceware.org2011-09-16 01:15:20 Modified files: bfd: ChangeLog bfd-in.h bfd-in2.h elflink.c linker.c include: ChangeLog bfdlink.h ld : ChangeLog ldlang.c ldlang.h pe-dll.c plugin.c ld/emultempl : elf32.em solaris2.em ld/testsuite : ChangeLog Added files: ld/testsuite/ld-elf: pr12975.d pr12975.s pr12975.t Log message: Check if a symbol is hidden by linker script. bfd/ 2011-09-15 H.J. Lu PR ld/12975 * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer to struct bfd_elf_version_tree. * elflink.c (elf_info_failed): Remove verdefs. (_bfd_elf_export_symbol): Updated. _bfd_elf_link_assign_sym_version): Likewise. (bfd_elf_size_dynamic_sections): Remove pointer to struct bfd_elf_version_tree. Updated. (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden by linker script. * linker.c (bfd_hide_sym_by_version): New. * bfd-in2.h: Regenerated. include/ 2011-09-15 H.J. Lu PR ld/12975 * bfdlink.h (bfd_link_info): Add version_info. ld/ 2011-09-15 H.J. Lu PR ld/12975 * ldlang.c (lang_elf_version_info): Removed. (lang_register_vers_node): Replace lang_elf_version_info with link_info.version_info. (lang_add_vers_depend): Likewise. * pe-dll.c (process_def_file_and_drectve): Likewise. * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise. * ldlang.h (lang_elf_version_info): Removed. * plugin.c (is_visible_from_outside): Check if symbol is hidden by version script. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Remove lang_elf_version_info. ld/testsuite/ 2011-09-15 H.J. Lu PR ld/12975 * ld-elf/pr12975.d: New. * ld-elf/pr12975.s: Likewise. * ld-elf/pr12975.t: Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5469&r2=1.5470 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/bfd-in.h.diff?cvsroot=src&r1=1.157&r2=1.158 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/bfd-in2.h.diff?cvsroot=src&r1=1.548&r2=1.549 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.418&r2=1.419 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/linker.c.diff?cvsroot=src&r1=1.89&r2=1.90 http://sourceware.org/cgi-bin/cvsweb.cgi/src/include/ChangeLog.diff?cvsroot=src&r1=1.548&r2=1.549 http://sourceware.org/cgi-bin/cvsweb.cgi/src/include/bfdlink.h.diff?cvsroot=src&r1=1.91&r2=1.92 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2369&r2=1.2370 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=src&r1=1.376&r2=1.377 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.h.diff?cvsroot=src&r1=1.98&r2=1.99 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/pe-dll.c.diff?cvsroot=src&r1=1.137&r2=1.138 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/plugin.c.diff?cvsroot=src&r1=1.39&r2=1.40 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/emultempl/elf32.em.diff?cvsroot=src&r1=1.222&r2=1.223 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/emultempl/solaris2.em.diff?cvsroot=src&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1457&r2=1.1458 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr12975.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr12975.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr12975.t.diff?cvsroot=src&r1=NONE&r2=1.1 -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13177] garbage collector retains zombie references to external libraries
http://sourceware.org/bugzilla/show_bug.cgi?id=13177 --- Comment #2 from cvs-commit at gcc dot gnu.org 2011-09-16 01:17:19 UTC --- CVSROOT:/cvs/src Module name:src Changes by:h...@sourceware.org2011-09-16 01:17:16 Modified files: ld/testsuite : ChangeLog bfd: ChangeLog elflink.c Added files: ld/testsuite/ld-elf: pr13177.d pr13177.s Log message: Also hide symbols without PLT nor GOT references. bfd/ 2011-09-15 H.J. Lu PR ld/13177 * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT nor GOT references. ld/testsuite/ 2011-09-15 H.J. Lu PR ld/13177 * ld-elf/pr13177.d: New. * ld-elf/pr13177.s: Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1458&r2=1.1459 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr13177.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr13177.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5470&r2=1.5471 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.419&r2=1.420 -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12975] --gc-sections doesn't remove symbols hidden with version scripts
http://sourceware.org/bugzilla/show_bug.cgi?id=12975 --- Comment #6 from Dmitry Gorbachev 2011-09-16 02:33:10 UTC --- I can't reproduce the original issue with recent GOLD (ver. 1.11/2.21.53.20110913) on i686-pc-linux-gnu. It still fails with BFD LD on i686-pc-mingw32 (with --gc-sections, but not with LTO). -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/13180] strip -g -> objdump: bad value
http://sourceware.org/bugzilla/show_bug.cgi?id=13180 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #9 from H.J. Lu 2011-09-16 04:24:13 UTC --- Fixed. -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/13177] garbage collector retains zombie references to external libraries
http://sourceware.org/bugzilla/show_bug.cgi?id=13177 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Version|2.21|2.22 (HEAD) Resolution||FIXED --- Comment #3 from H.J. Lu 2011-09-16 04:25:18 UTC --- Fixed. -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/13180] strip -g -> objdump: bad value
http://sourceware.org/bugzilla/show_bug.cgi?id=13180 --- Comment #8 from cvs-commit at gcc dot gnu.org 2011-09-16 04:23:31 UTC --- CVSROOT:/cvs/src Module name:src Changes by:h...@sourceware.org2011-09-16 04:23:19 Modified files: binutils : ChangeLog objcopy.c binutils/testsuite: ChangeLog binutils/testsuite/binutils-all: objcopy.exp Added files: binutils/testsuite/binutils-all: group-6.d group-6.s Log message: Remove the group section if all members are removed. binutils/ 2011-09-15 H.J. Lu PR binutils/13180 * objcopy.c (is_strip_section_1): New. (is_strip_section): Use it. Remove the group section if all members are removed. binutils/testsuite/ 2011-09-15 H.J. Lu PR binutils/13180 * binutils-all/group-6.d: New. * binutils-all/group-6.s: Likewise. * binutils-all/objcopy.exp: Run group-6 for ELF targrts. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1826&r2=1.1827 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/objcopy.c.diff?cvsroot=src&r1=1.152&r2=1.153 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/ChangeLog.diff?cvsroot=src&r1=1.240&r2=1.241 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/group-6.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/group-6.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/objcopy.exp.diff?cvsroot=src&r1=1.74&r2=1.75 -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12975] --gc-sections doesn't remove symbols hidden with version scripts
http://sourceware.org/bugzilla/show_bug.cgi?id=12975 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Version|2.21|2.22 (HEAD) Resolution||FIXED --- Comment #7 from H.J. Lu 2011-09-16 04:27:12 UTC --- Fixed. -- 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 https://lists.gnu.org/mailman/listinfo/bug-binutils