diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2020-03-03 21:08:05 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2020-03-04 17:11:37 -0800 |
commit | dee35d026c92b4054a90d655324dc90b4ea6cbfc (patch) | |
tree | a5f9654e612006b23bc8922a0fd903282e21ec32 /gas/config/tc-riscv.c | |
parent | de48783e2fbb57e39b9931b1eceef28a1ad1eeaf (diff) | |
download | gdb-dee35d026c92b4054a90d655324dc90b4ea6cbfc.zip gdb-dee35d026c92b4054a90d655324dc90b4ea6cbfc.tar.gz gdb-dee35d026c92b4054a90d655324dc90b4ea6cbfc.tar.bz2 |
RISC-V: Support assembler modifier %got_pcrel_hi.
gas/
* config/tc-riscv.c: Support the modifier %got_pcrel_hi.
* doc/c-riscv.texi: Add documentation.
* testsuite/gas/riscv/no-relax-reloc.d: Add test case for the new
modifier %got_pcrel_hi.
* testsuite/gas/riscv/no-relax-reloc.s: Likewise.
* testsuite/gas/riscv/relax-reloc.d: Likewise.
* testsuite/gas/riscv/relax-reloc.s: Likewise.
Diffstat (limited to 'gas/config/tc-riscv.c')
-rw-r--r-- | gas/config/tc-riscv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index ddd4d14..168561e 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -1308,6 +1308,7 @@ static const struct percent_op_match percent_op_utype[] = { {"%tprel_hi", BFD_RELOC_RISCV_TPREL_HI20}, {"%pcrel_hi", BFD_RELOC_RISCV_PCREL_HI20}, + {"%got_pcrel_hi", BFD_RELOC_RISCV_GOT_HI20}, {"%tls_ie_pcrel_hi", BFD_RELOC_RISCV_TLS_GOT_HI20}, {"%tls_gd_pcrel_hi", BFD_RELOC_RISCV_TLS_GD_HI20}, {"%hi", BFD_RELOC_RISCV_HI20}, |