bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/24676] [RISCV] Redundant R_RISCV_DTPMOD* R_RISCV_DTPREL* resulte


From: nelsonc1225 at sourceware dot org
Subject: [Bug ld/24676] [RISCV] Redundant R_RISCV_DTPMOD* R_RISCV_DTPREL* resulted from Global Dynamic -> Local Exec relaxation
Date: Mon, 19 Apr 2021 08:17:37 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24676

Nelson Chu <nelsonc1225 at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nelsonc1225 at sourceware dot 
org

--- Comment #3 from Nelson Chu <nelsonc1225 at sourceware dot org> ---
> RISC-V psABI doesn't specify TLS relaxation. Though the code sequences are not
> relaxed, dynamic relocations should be omitted for GD->LE relaxation.

Yes, I think the root cause is what you mentioned - RISC-V GNU ld doesn't
support the TLS transitions.  I have taken a loot at this, we can refer to what
x86 did in the elf_i386_tls_transition, and then remove the unused GOT/PLT
relocations in the elf_i386_relocate_section, by handling "wrel".

This is RISC-V's TODO for many years, but seems like an optimization, so I
think the priority isn't very high for now.  If someone is interested in this
issue, the above information should be helpful.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]