https://sourceware.org/bugzilla/show_bug.cgi?id=22969
Bug ID: 22969
Summary: Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12
relocation.
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: peter.smith at linaro dot org
CC: ian at airs dot com
Target Milestone: ---
In a recent change to LLVM (https://reviews.llvm.org/D44355) an attempt was
made to fold the add and the ldr in the sequence:
mrs x1, TPIDR_EL0
add x2, x1, :tprel_hi12:local_exec_var
add x3, x2, :tprel_lo12_nc:local_exec_var
ldr w0, [x3]
to:
mrs x1, TPIDR_EL0
add x2, x1, :tprel_hi12:local_exec_var
ldr w0, [x2, :tprel_lo12_nc:local_exec_var]
Unfortunately for this to work support is needed for the
R_AARCH_TLSLE_LDST8_TPREL_LO12 relocation that
ldr w0, [x2, :tprel_lo12_nc:local_exec_var] uses.
It looks like only R_AARCH64_TLSLE_ADD_TPREL_LO12 is supported in binutils
trunk (gold and bfd right now). It would be nice to add support for that
relocation to enable the relaxation.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils