aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2023-04-21 16:28:39 +0800
committerNelson Chu <nelson@rivosinc.com>2023-04-28 14:27:35 +0800
commit03e63766ef099ba85d8917c9f179441ae086375e (patch)
tree56c13570cb263ba14b59f435e8a7cdfe0e8db98a /gdb/python
parenta48ddc3b572eb7fd9325867c4946f6bbb1f9b5b4 (diff)
downloadbinutils-03e63766ef099ba85d8917c9f179441ae086375e.zip
binutils-03e63766ef099ba85d8917c9f179441ae086375e.tar.gz
binutils-03e63766ef099ba85d8917c9f179441ae086375e.tar.bz2
RISC-V: Enable x0 base relaxation for relax_pc even if --no-relax-gp.
Let --no-relax-gp only disable the gp relaxation for lui and pcrel relaxations, since x0 base and gp relaxations are different optimizations in fact, but just use the same function to handle. bfd/ * elfnn-riscv.c (_bfd_riscv_relax_pc): Like _bfd_riscv_relax_lui, set gp to zero when --no-relax-gp, then we should still keep the x0 base relaxation. (_bfd_riscv_relax_section): Enable _bfd_riscv_relax_pc when --no-relax-gp, we will disable the gp relaxation in the _bfd_riscv_relax_pc.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions