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.