<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 21, 2024 at 1:56 AM Tatsuyuki Ishi <<a href="mailto:ishitatsuyuki@gmail.com">ishitatsuyuki@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">This patchset implements TLS Descriptors (TLSDESC) for RISC-V targets, per<br>
the specification (merged) at [1].<br>
<br>
Tested on rv32gc & rv64gc for:<br>
- No regression (& passing new tests) in binutils<br>
- No regression in gcc<br>
- No regression in glibc for subdirs=elf<br>
With both -mtls-dialect=desc and trad.<br>
<br>
This contribution is made on behalf of Blue Whale Systems, which has<br>
copyright assignment on file with the FSF.<br>
<br>
[1]: <a href="https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/373" rel="noreferrer" target="_blank">https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/373</a><br>
<br>
v2: Add changelogs and tests. Minor fixes described in patch messages.<br>
v3: Add relaxation support. This fixes tst-tls1-static in glibc.<br>
v4: Fix issues pointed out in review (thanks Nelson).<br>
<br>
Tatsuyuki Ishi (9):<br>
  RISC-V: Fix local GOT and reloc size calculation for TLS.<br>
  RISC-V: Add TLSDESC reloc definitions.<br>
  RISC-V: Add assembly support for TLSDESC.<br>
  RISC-V: Define and use GOT entry size constants for TLS.<br>
  RISC-V: Initial ld.bfd support for TLSDESC.<br></blockquote><div><br></div><div>Committed the above five patches since reviewed and passed the gcc/binutils regressions of riscv-gnu-toolchain.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
  RISC-V: Move STATIC_TLS handling into record_tls_type.<br>
  RISC-V: Unify TLS handling in check_relocs.<br>
  RISC-V: Add elf_link_hash_entry to relax_func args.<br>
  RISC-V: Introduce TLSDESC relaxation.<br></blockquote><div><br></div><div>Ongoing... </div><div><br></div><div><div>Thanks</div><div>Nelson</div></div></div></div>