]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Add assembly support for TLSDESC.
authorTatsuyuki Ishi <ishitatsuyuki@gmail.com>
Tue, 20 Feb 2024 17:55:50 +0000 (02:55 +0900)
committerNelson Chu <nelson@rivosinc.com>
Thu, 29 Feb 2024 07:02:51 +0000 (15:02 +0800)
commit04d352509cd6d4719bf9d80312228cc6015c410f
tree13332ccdf9f626cfe4ab78325ccb906ff327bdb8
parentdc1470f1d8779e151fb231639014597582bb7f4e
RISC-V: Add assembly support for TLSDESC.

gas/
    * tc-riscv.c (percent_op_*): Add support for %tlsdesc_hi,
    %tlsdesc_load_lo, %tlsdesc_add_lo and %tlsdesc_call. percent_op_rtype
    renamed to percent_op_relax_only as this matcher is extended to handle
    jalr as well which is not R-type.
    (riscv_ip): Apply the percent_op_relax_only rename and update comment.
    (md_apply_fix): Add TLSDESC_* to relaxable list. Add TLSDESC_HI20 to
    TLS relocation check list.
    * testsuite/gas/riscv/tlsdesc.*: New test cases for TLSDESC relocation
    generation.
opcodes/
    * riscv-opc.c (riscv_opcodes): Add a new syntax for jalr with
    %tlsdesc_call annotations.
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/tlsdesc.d [new file with mode: 0644]
gas/testsuite/gas/riscv/tlsdesc.s [new file with mode: 0644]
opcodes/riscv-opc.c