RISC-V: Fix that IRELATIVE relocs may be inserted to the wrong place.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index b0cd8b8ec51e5cff2b4ea6b3422f8834ff9dc30c..7fb6181410601bb7e52b852ab37bd05b9455107f 100644 (file)
@@ -1,3 +1,12 @@
+2020-10-16  Nelson Chu  <nelson.chu@sifive.com>
+
+       * elfnn-riscv.c (riscv_elf_link_hash_table): Add last_iplt_index.
+       (riscv_elf_size_dynamic_sections): Initialize the last_iplt_index.
+       (riscv_elf_relocate_section): Use riscv_elf_append_rela.
+       (riscv_elf_finish_dynamic_symbol): If the use_elf_append_rela is
+       false, then we should add the dynamic relocs from the last of
+       the .rela.iplt, and don't use the riscv_elf_append_rela to add.
+
 2020-10-16  Nelson Chu  <nelson.chu@sifive.com>
 
        * elfnn-riscv.c: Include "objalloc.h" since we need objalloc_alloc.
This page took 0.02327 seconds and 4 git commands to generate.