[PATCH 0/4] RISC-V: Implement TLS Descriptors.

Tatsuyuki Ishi ishitatsuyuki@gmail.com
Thu Aug 17 18:08:33 GMT 2023


This patchset implements TLS Descriptors (TLSDESC) for RISC-V targets, per
the specification draft at [1].

This patchset is based on top of [2].

No regression in binutils and gcc tests for rv64gc, tested alongside the
gcc and glibc implementation (will be posted shortly).

This contribution is made on behalf of Blue Whale Systems, which has
copyright assignment on file with the FSF.

[1]: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/373
[2]: https://sourceware.org/pipermail/binutils/2023-August/129075.html

Tatsuyuki Ishi (4):
  RISC-V: Add TLSDESC reloc definitions.
  RISC-V: Add assembly support for TLSDESC.
  RISC-V: Define and use GOT entry size constants for TLS.
  RISC-V: Initial ld.bfd support for TLSDESC.

 bfd/bfd-in2.h                              |   4 +
 bfd/elfnn-riscv.c                          | 105 ++++++++++++++++++---
 bfd/elfxx-riscv.c                          |  75 ++++++++++++++-
 bfd/libbfd.h                               |   4 +
 bfd/reloc.c                                |   8 ++
 gas/config/tc-riscv.c                      |  18 +++-
 include/elf/riscv.h                        |   5 +
 ld/testsuite/ld-riscv-elf/ld-riscv-elf.exp |   2 +
 opcodes/riscv-opc.c                        |   1 +
 9 files changed, 201 insertions(+), 21 deletions(-)

-- 
2.41.0



More information about the Binutils mailing list