<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><blockquote type="cite"><div>On Feb 29, 2024, at 16:06, Nelson Chu <nelson@rivosinc.com> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><br class="Apple-interchange-newline"><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><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]:<span class="Apple-converted-space"> </span><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> <span class="Apple-converted-space"> </span>RISC-V: Fix local GOT and reloc size calculation for TLS.<br> <span class="Apple-converted-space"> </span>RISC-V: Add TLSDESC reloc definitions.<br> <span class="Apple-converted-space"> </span>RISC-V: Add assembly support for TLSDESC.<br> <span class="Apple-converted-space"> </span>RISC-V: Define and use GOT entry size constants for TLS.<br> <span class="Apple-converted-space"> </span>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><div><br></div>Thanks a lot for the review!</div><div><br></div><div><blockquote type="cite"><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><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;"> <span class="Apple-converted-space"> </span>RISC-V: Move STATIC_TLS handling into record_tls_type.<br> <span class="Apple-converted-space"> </span>RISC-V: Unify TLS handling in check_relocs.<br> <span class="Apple-converted-space"> </span>RISC-V: Add elf_link_hash_entry to relax_func args.<br> <span class="Apple-converted-space"> </span>RISC-V: Introduce TLSDESC relaxation.<br></blockquote><div><br></div><div>Ongoing... </div></div></blockquote><div><br></div><div>Acknowledged, I will keep working on glibc revisions in the meantime.</div><div><br></div><div>Tatsuyuki</div><br><blockquote type="cite"><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div><br></div><div><div>Thanks</div><div>Nelson</div></div></div></blockquote></div><br></body></html>