[Bug binutils/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 Ben Gamari changed: What|Removed |Added CC||bgamari 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 binutils/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 --- Comment #1 from Ben Gamari --- This appears to be responsible for brokenness on ARM when the Glasgow Haskell Compiler is used to produce dynamically linked executables https://ghc.haskell.org/trac/ghc/ticket/4210#comment:29. -- 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/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 --- Comment #4 from Ben Gamari --- Unfortunately my ARM hardware bit the dust. I'm waiting to take shipment of a new board and will test when it arrives. -- 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/16177] R_ARM_COPY reloc generated for reference in writable section
https://sourceware.org/bugzilla/show_bug.cgi?id=16177 --- Comment #5 from Ben Gamari --- My new hardware arrived. Naturally the patch required a bit of rebasing. My guess can be found here, https://github.com/bgamari/binutils-gdb/commit/539f59256dd8b503b1188eecb30a338ee38616f8. I've started a GHC build linking with the linker from this commit. I'll let you know when it's finished and I've verified that it works. -- 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 gold/22266] New: ld.gold produces invalid output when linking with --relocatable
https://sourceware.org/bugzilla/show_bug.cgi?id=22266 Bug ID: 22266 Summary: ld.gold produces invalid output when linking with --relocatable Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: bgamari at gmail dot com CC: ian at airs dot com Target Milestone: --- I recently noticed that the Glasgow Haskell Compiler would break when built with split sections enabled. After a long process of debugging (https://ghc.haskell.org/trac/ghc/ticket/14291), I found that the cause is that ld.gold produces incorrect output when producing relocatable object files. To demonstrate the issue I put together a small reproduction case fo build anr amd64 here: https://github.com/bgamari/T14291-repro. The testcase consists of three object files taken from a GHCd a linker script. When linked with `ld.bfd -r` the testcase produces the expected output. However, when `ld.gold -r` is used the resulting object file appears to be mangled. Specifically, the input object `Err.o` contains the symbol, $ objdump -D Err.o | grep -A6 '' : ... 10: 03 00 add(%rax),%eax 12: 00 00 add%al,(%rax) 14: 00 00 add%al,(%rax) ... Whereas the output object produced by `ld.gold` contains, $ ld.gold --version GNU gold (GNU Binutils for Debian 2.28) 1.14 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. $ ld.gold -r -T merge_sections.ld -o out.o Concurrent.o Base.o Err.o $ objdump -D out.o | grep -A6 '' 1548 : ... There is no other symbol named r1Cy_closure in any of the other linked objects. -- 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 gold/22266] ld.gold produces invalid output when linking with --relocatable
https://sourceware.org/bugzilla/show_bug.cgi?id=22266 Ben Gamari changed: What|Removed |Added Version|unspecified |2.28 --- Comment #1 from Ben Gamari --- This has been observed with both binutils 2.28 packaged in Debian Stretch as well as the current `master` branch. -- 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 gold/22266] ld.gold produces invalid output when linking with --relocatable
https://sourceware.org/bugzilla/show_bug.cgi?id=22266 --- Comment #13 from Ben Gamari --- Has this been re-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