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-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils