RISC-V: Relax RISCV_PCREL_* to RISCV_GPREL_*
[binutils-gdb.git] / bfd / ChangeLog
index 772f526cb45963473eaca89dc6893d9adb75bfcb..4be9704d1d1ebf98e1f2edd399087b0a2a3d1b70 100644 (file)
@@ -1,3 +1,21 @@
+2017-10-19  Palmer Dabbelt  <palmer@dabbelt.com>
+
+       * elfnn-riscv.c (riscv_pcgp_hi_reloc): New structure.
+       (riscv_pcgp_lo_reloc): Likewise.
+       (riscv_pcgp_relocs): Likewise.
+       (riscv_init_pcgp_relocs): New function.
+       (riscv_free_pcgp_relocs): Likewise.
+       (riscv_record_pcgp_hi_reloc): Likewise.
+       (riscv_record_pcgp_lo_reloc): Likewise.
+       (riscv_delete_pcgp_hi_reloc): Likewise.
+       (riscv_use_pcgp_hi_reloc): Likewise.
+       (riscv_record_pcgp_lo_reloc): Likewise.
+       (riscv_find_pcgp_lo_reloc): Likewise.
+       (riscv_delete_pcgp_lo_reloc): Likewise.
+       (_bfd_riscv_relax_pc): Likewise.
+       (_bfd_riscv_relax_section): Handle R_RISCV_PCREL_* relocations
+       via the new functions above.
+
 2017-10-19  Palmer Dabbelt  <palmer@dabbelt.com>
 
        * elfnn-riscv.c (R_RISCV_DELETE): New define.