diff options
author | Jim Wilson <jimw@sifive.com> | 2018-04-20 15:30:18 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-04-20 15:30:18 -0700 |
commit | 7106056554c9f25e9a857b69b4595c9b3c7c4639 (patch) | |
tree | 90c03b2214cd6b856319ad23932b775c7277b652 /gas/doc | |
parent | 5c8f23cdab2a7cde2dae6fcd5f9b18d089efecaf (diff) | |
download | gdb-7106056554c9f25e9a857b69b4595c9b3c7c4639.zip gdb-7106056554c9f25e9a857b69b4595c9b3c7c4639.tar.gz gdb-7106056554c9f25e9a857b69b4595c9b3c7c4639.tar.bz2 |
RISC-V: Add new option -mrelax/-mno-relax.
gas/
* config/tc-riscv.c (options): Add OPTION_RELAX and
OPTION_NO_RELAX.
(md_longopts): New option -mrelax and -mno-relax.
(md_parse_option): Handle -mrelax and -mno-relax.
* doc/c-riscv.texi: Document for -mrelax and -mno-relax.
* testsuite/gas/riscv/no-relax-reloc.d: New.
* testsuite/gas/riscv/no-relax-reloc.s: New.
* testsuite/gas/riscv/relax-reloc.d: New.
* testsuite/gas/riscv/relax-reloc.s: New.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-riscv.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi index 30e6125..79bc4e3 100644 --- a/gas/doc/c-riscv.texi +++ b/gas/doc/c-riscv.texi @@ -48,6 +48,15 @@ by "f", "d", or "q" to indicate single-precision, double-precision, or quad-precision floating-point calling convention, or none to indicate the soft-float calling convention. +@cindex @samp{-mrelax} option, RISC-V +@item -mrelax +Take advantage of linker relaxations to reduce the number of instructions +required to materialize symbol addresses. (default) + +@cindex @samp{-mno-relax} option, RISC-V +@item -mno-relax +Don't do linker relaxations. + @end table @c man end |