[Bug ld/16787] LD gives wrong error messages
https://sourceware.org/bugzilla/show_bug.cgi?id=16787 Alan Modra changed: What|Removed |Added Assignee|unassigned at sourceware dot org |amodra at gmail dot com --- Comment #13 from Alan Modra --- Patch under test. This testcase tickles quite a few bugs. -- 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/16865] New: sysroot not stripped for libraries specified with full path
https://sourceware.org/bugzilla/show_bug.cgi?id=16865 Bug ID: 16865 Summary: sysroot not stripped for libraries specified with full path Product: binutils Version: 2.24 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: aadne at hovda dot no Host: x86_64-unknown-linux-gnu Target: powerpc-ibm-aix5.1.0.0 Build: x86_64-unknown-linux-gnu Hi If I pass the full path to a shared library on the link command line (no -l/-L options), the import section in the resulting xcoff file will not be stripped from the sysroot prefix for that library. I'm setting -blibpath to /usr/lib:/lib so the first general import entry (index 0) gets properly set, but the specific imports (index > 0) still contain the wrong search path. Here's an example run: /openit/devel/toolchains/bin/powerpc-ibm-aix5.1.0.0-ld \ --sysroot=/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root \ -bpT:0x1000 \ -bpD:0x2000 \ -btextro \ -bnodelcsect \ -bexport:/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libg.exp \ -o../../../../../bin/openit_messageconsole \ /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/crt0_r.o \ -L/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/pthread/powerpc \ -L/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4 \ -L/openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/../../../../powerpc-ibm-aix5.1.0.0/lib \ -L/openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib \ CMakeFiles/openit_messageconsole.dir/__/__/__/__/programs/fox/messageconsole/FXMessageConsole.cpp.o \ CMakeFiles/openit_messageconsole.dir/__/__/__/__/programs/fox/messageconsole/messageconsole.cpp.o \ CMakeFiles/openit_messageconsole.dir/__/__/__/__/programs/fox/messageconsole/MessageConsoleMain.cpp.o \ -brtl \ -bexpall \ ../../../../../lib/libnetwork.a \ ../../../../../lib/libcommon.a \ ../../../../../lib/libfox.a \ ../../../../../lib/libencryption.a \ ../../../../../lib/libjsoncpp.a \ -lnsl \ ../../../../../lib/libpng.a \ ../../../../../lib/libz.a \ /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libSM.a \ /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libICE.a \ /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libX11.a \ /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib/libXext.a \ -blibpath:/usr/lib:/lib \ -lstdc++ \ -lm \ /openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/pthread/powerpc/libgcc.a \ -lg \ -lpthreads \ -lc \ /openit/devel/toolchains/lib/gcc/powerpc-ibm-aix5.1.0.0/4.6.4/pthread/powerpc/libgcc.a And the corresponding "dump -H" output: ***Loader Section*** Loader Header Information VERSION# #SYMtableENT #RELOCentLENidSTR 0x0001 0x0175 0x5747 0x00ea #IMPfilIDOFFidSTR LENstrTBLOFFstrTBL 0x0006 0x00043a6c 0x0d70 0x00043b56 ***Import File Strings*** INDEX PATH BASEMEMBER 0 /usr/lib:/lib 1 /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib libX11.ashr4.o 2 /openit/devel/toolchains/powerpc-ibm-aix5.1.0.0/sys-root/usr/lib libXext.a shr.o 3libpthreads.a shr_xpg5.o 4libc.a shr.o 5librtl.ashr.o -- 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/16821] x86_64 PE/COFF: ld truncates addresses of symbols from linker scripts to 32 bit
https://sourceware.org/bugzilla/show_bug.cgi?id=16821 --- Comment #9 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via 285fc9d8f8ed30b8a9d680fbf37e8f1843b95bc0 (commit) from 5d3b02f0036dbf39863fd24414e28f28a53ea1fd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=285fc9d8f8ed30b8a9d680fbf37e8f1843b95bc0 commit 285fc9d8f8ed30b8a9d680fbf37e8f1843b95bc0 Author: Yuanhui Zhang Date: Tue Apr 22 11:00:39 2014 +0100 Fix build problem on 32-bit hosts with the recent patch for PR 16821. PR ld/16821 * peXXigen.c (abs_finder): Fix for 32-bit host builds. --- Summary of changes: bfd/ChangeLog |5 + bfd/peXXigen.c | 10 +- 2 files changed, 14 insertions(+), 1 deletions(-) -- 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/16821] x86_64 PE/COFF: ld truncates addresses of symbols from linker scripts to 32 bit
https://sourceware.org/bugzilla/show_bug.cgi?id=16821 --- Comment #10 from Nick Clifton --- Thanks Yuanhui - patch applied. -- 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/16452] ELF executable with weak reference linked with ld causes assertion in ld.so
https://sourceware.org/bugzilla/show_bug.cgi?id=16452 Allan McRae changed: What|Removed |Added CC||allan at archlinux dot org -- 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/16787] LD gives wrong error messages
https://sourceware.org/bugzilla/show_bug.cgi?id=16787 David Kredba changed: What|Removed |Added CC||nheghathivhistha at gmail dot com -- 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/16821] x86_64 PE/COFF: ld truncates addresses of symbols from linker scripts to 32 bit
https://sourceware.org/bugzilla/show_bug.cgi?id=16821 --- Comment #11 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via d5f59c10fc37e325d3fbad4ae7970c7cf0857b46 (commit) from 73589c9dbddc7906fa6a150f2a2a0ff6b746e8ba (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d5f59c10fc37e325d3fbad4ae7970c7cf0857b46 commit d5f59c10fc37e325d3fbad4ae7970c7cf0857b46 Author: Nick Clifton Date: Tue Apr 22 16:57:34 2014 +0100 Another fix for building on a 32-bit host. PR ld/16821 * peXXigen.c (_bfd_XXi_swap_sym_out): Fix for 32-bit hosts. --- Summary of changes: bfd/ChangeLog |5 + bfd/peXXigen.c |2 +- 2 files changed, 6 insertions(+), 1 deletions(-) -- 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/16846] LTO mismatched TLS reference
https://sourceware.org/bugzilla/show_bug.cgi?id=16846 --- Comment #3 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via 43c001c7d638bde9f310fdc3a199e02036f7b205 (commit) from d5f59c10fc37e325d3fbad4ae7970c7cf0857b46 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=43c001c7d638bde9f310fdc3a199e02036f7b205 commit 43c001c7d638bde9f310fdc3a199e02036f7b205 Author: H.J. Lu Date: Tue Apr 22 10:22:39 2014 -0700 Add tests for PR ld/16846 PR ld/16846 * ld-plugin/lto.exp (lto_link_tests): Add tests for PR ld/16846. * ld-plugin/pr16846a.c: New file. * ld-plugin/pr16846b.c: Likewise. * ld-plugin/pr16846c.c: Likewise. --- Summary of changes: ld/testsuite/ChangeLog|8 ld/testsuite/ld-plugin/lto.exp| 12 ld/testsuite/ld-plugin/pr16846a.c |7 +++ ld/testsuite/ld-plugin/pr16846b.c |7 +++ ld/testsuite/ld-plugin/pr16846c.c |1 + 5 files changed, 35 insertions(+), 0 deletions(-) create mode 100644 ld/testsuite/ld-plugin/pr16846a.c create mode 100644 ld/testsuite/ld-plugin/pr16846b.c create mode 100644 ld/testsuite/ld-plugin/pr16846c.c -- 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/16867] New: linking object with separate debug file results in "relocation .. has invalid symbol index"
https://sourceware.org/bugzilla/show_bug.cgi?id=16867 Bug ID: 16867 Summary: linking object with separate debug file results in "relocation .. has invalid symbol index" Product: binutils Version: 2.25 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: amodra at gmail dot com cat > start.s
[Bug ld/16787] LD gives wrong error messages
https://sourceware.org/bugzilla/show_bug.cgi?id=16787 --- Comment #14 from cvs-commit at gcc dot gnu.org --- This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gdb and binutils". The branch, master has been updated via cd0449ab05e9045682a81bf521bd0c8732c98feb (commit) from 1547d98f5a774617b38f2bdd9be3b5c21c2b9312 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cd0449ab05e9045682a81bf521bd0c8732c98feb commit cd0449ab05e9045682a81bf521bd0c8732c98feb Author: Alan Modra Date: Wed Apr 23 14:26:19 2014 +0930 PR ld/16787, stale dwarf2 stash Throw away the dwarf2 stash if it becomes invalid due to section VMAs changing. It would be nice to reclaim all the bfd_alloc memory here when we throw away the stash, perhaps by putting everything we alloc on a private dwarf2 objalloc, but I haven't done that with this patch. I've also fixed a problem with bfd_perform_relocation losing reloc addends, which meant a second or subsequent look at debug info sections did not properly relocate the sections. I can't see why bfd_perform_relocation should need to change addends except for ld -r, and the history (985fca12, e98e6ec1) doesn't help much. Finally, the patch tweaks place_sections to avoid unnecessary work. If we've mapped input to output sections, then input section VMA isn't used so there's not much point in adjusting it. Incidentally, this also means place_sections isn't effective in all cases. PR ld/16787 * dwarf2.c (struct dwarf2_debug): Add sec_vma field. (place_sections): Do not modify VMA of sections when called from linker after sections have been placed in output sections. Short circuit single section case. (save_section_vma, section_vma_same): New functions. (_bfd_dwarf2_slurp_debug_info): Throw away stash if section VMAs change. * reloc.c (bfd_perform_relocation): Do not modify reloc addend when non-relocatable. --- Summary of changes: bfd/ChangeLog | 13 + bfd/dwarf2.c | 85 - bfd/reloc.c |4 --- 3 files changed, 91 insertions(+), 11 deletions(-) -- 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/16787] LD gives wrong error messages
https://sourceware.org/bugzilla/show_bug.cgi?id=16787 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #15 from Alan Modra --- Fixed. -- 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