[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22970] New: Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 rel
From: |
peter.smith at linaro dot org |
Subject: |
[Bug ld/22970] New: Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation. |
Date: |
Wed, 14 Mar 2018 14:20:12 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22970
Bug ID: 22970
Summary: Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12
relocation.
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: peter.smith at linaro dot org
Target Milestone: ---
This enhancement has the same text as:
https://sourceware.org/bugzilla/show_bug.cgi?id=22969 but applies to ld.bfd and
not ld.gold.
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 ld/22970] New: Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation.,
peter.smith at linaro dot org <=
- [Bug ld/22970] Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation., nickc at redhat dot com, 2018/03/22
- [Bug ld/22970] Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation., peter.smith at linaro dot org, 2018/03/22
- [Bug ld/22970] Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation., peter.smith at linaro dot org, 2018/03/26
- [Bug ld/22970] Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation., nickc at redhat dot com, 2018/03/27
- [Bug ld/22970] Add support for R_AARCH64_TLSLE_LDST8_TPREL_LO12 relocation., renlin.li at arm dot com, 2018/03/28