[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23825] New: Linker creates COPY relocs for reference to TLS symb
From: |
address@hidden |
Subject: |
[Bug ld/23825] New: Linker creates COPY relocs for reference to TLS symbols |
Date: |
Thu, 25 Oct 2018 15:10:44 +0000 |
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: address@hidden
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 ld/23825] New: Linker creates COPY relocs for reference to TLS symbols,
address@hidden <=