aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-02-23 22:11:14 -0800
committerFangrui Song <i@maskray.me>2023-02-23 22:11:14 -0800
commit50980ba351856dff75bb0743bfca62f4c3ab19ff (patch)
tree57293555d30735da578d765d9d4058b46d237df9 /ld/ChangeLog
parent6777dece58127236db900215857f9070ad63e0bf (diff)
downloadgdb-50980ba351856dff75bb0743bfca62f4c3ab19ff.zip
gdb-50980ba351856dff75bb0743bfca62f4c3ab19ff.tar.gz
gdb-50980ba351856dff75bb0743bfca62f4c3ab19ff.tar.bz2
RISC-V: Add --[no-]relax-gp to ld
--relax enables all relaxations. --no-relax-gp disables GP relaxation to allow measuring its effect. The option can test effectiveness of GP relaxation and support some ABI variants that use GP for other purposes. Link: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/issues/298 bfd/ * elfnn-riscv.c (struct riscv_elf_link_hash_table): Add params. (riscv_elfNN_set_options): New. (riscv_info_to_howto_rela): Check relax_gp. (_bfd_riscv_relax_section): Likewise. * elfxx-riscv.h (struct riscv_elf_params): New. (riscv_elf32_set_options): New. (riscv_elf64_set_options): New. ld/ * emultempl/riscvelf.em: Add option parsing. * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New. * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New. * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be used together.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index de9ed27..9f4ad7c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,11 @@
+2023-02-23 Fangrui Song <i@maskray.me>
+
+ * emultempl/riscvelf.em: Add option parsing.
+ * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
+ * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
+ * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
+ used together.
+
2023-02-20 Nick Clifton <nickc@redhat.com>
PR 30004