https://sourceware.org/bugzilla/show_bug.cgi?id=23825
Bug ID: 23825 Summary: Linker creates COPY relocs for reference to TLS symbols Product: binutils Version: 2.31 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: sch...@linux-m68k.org CC: wilson at gcc dot gnu.org Target Milestone: --- Target: riscv64-*-* When linking elf/tst-tls12 from glibc the linker creates COPY relocs for the references to the TLS symbols a1 and a2, ending up overwriting the .preinit_array and .init_array contents. $ objdump -t tst-tls12.o | grep 'a[12]' 0000000000000000 *UND* 0000000000000000 a1 0000000000000000 *UND* 0000000000000000 a2 $ objdump -R tst-tls12 | grep COPY 0000000000013d68 R_RISCV_COPY a1 0000000000013d78 R_RISCV_COPY a2 $ objdump -p tst-tls12 | grep INIT PREINIT_ARRAY 0x0000000000013d68 PREINIT_ARRAYSZ 0x0000000000000008 INIT_ARRAY 0x0000000000013d70 INIT_ARRAYSZ 0x0000000000000008 -- 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