[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 --- Comment #6 from Michael Matz --- (And just FWIW: aarch64 binutils 2.36 and 2.37 don't have the problem either). -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 Michael Matz changed: What|Removed |Added CC||matz at suse dot de Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Michael Matz --- So with current master binutils, without additional changes I don't see copy relocs on aarch64 with the (adjusted for data size) example: % cat data-ref.s .globl _start .p2align 4 _start: ret .data .globl data_object # .section.rodata,"a",@progbits object_reference: .quad data_object .size object_reference,8 % cat libdata.s .data .globl data_object .type data_object, %object .size data_object, 8 data_object: .quad 123 % ./gas/as-new -o data-ref.o data-ref.s % ./gas/as-new -o libdata.o libdata.s % ./ld/ld-new -shared -o libdata.so libdata.o % ./ld/ld-new -znocopyreloc -o data-ref data-ref.o libdata.so % readelf -rW data-ref Relocation section '.rela.dyn' at offset 0x230 contains 1 entry: Offset Info Type Symbol's Value Symbol's Name + Addend 00411000 00010101 R_AARCH64_ABS64 data_object + 0 This doesn't change when the '.section rodata' directive is uncommented, i.e. when the reference comes from a read-only section. Still no copy-reloc. (Without the -znocopyreloc linker option we do generate a copy reloc, but that's expected). So, right now I don't see anything in need for fixing. This all was somewhat related to a go problem: https://github.com/golang/go/issues/22040 . If that one still exists then it's different from _this_ problem report here. If there's new info or a reproducer that still shows a problem, please reopen. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 --- Comment #4 from Nick Clifton --- Created attachment 12792 --> https://sourceware.org/bugzilla/attachment.cgi?id=12792&action=edit Proposed patch FYI - here is a proposed, but completely untested, patch for the AArch64... -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 Richard Biener changed: What|Removed |Added Target||arm, aarch64 CC||rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener --- It's reported that the same issue exists for aarch64 (and Nicks patch is meanwhile on master but only addresses arm). -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 Maxim Kuvyrkov changed: What|Removed |Added CC||maxim.kuvyrkov at gmail dot com --- Comment #2 from Maxim Kuvyrkov --- Hi David, Any feedback on Nick's patch? -- 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/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 Nick Clifton changed: What|Removed |Added Status|NEW |ASSIGNED -- 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/19962] R_ARM_COPY relocation generated with -znocopyreloc
https://sourceware.org/bugzilla/show_bug.cgi?id=19962 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #1 from Nick Clifton --- Created attachment 9208 --> https://sourceware.org/bugzilla/attachment.cgi?id=9208&action=edit Proposed patch Hi David, Please try out this patch. Cheers Nick -- 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