Rework RISC-V relocations
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 500003dff5801d7307a02d33e51c989994e9b176..b6bba2ac3e0a0e02ed3919c7d1987227ffa3a394 100644 (file)
@@ -1,3 +1,33 @@
+2016-12-20  Andrew Waterman  <andrew@sifive.com>
+           Kuan-Lin Chen  <kuanlinchentw@gmail.com>
+
+       * reloc.c (BFD_RELOC_RISCV_TPREL_I): New relocation.
+       (BFD_RELOC_RISCV_TPREL_S): Likewise.
+       (BFD_RELOC_RISCV_RELAX): Likewise.
+       (BFD_RELOC_RISCV_CFA): Likewise.
+       (BFD_RELOC_RISCV_SUB6): Likewise.
+       (BFD_RELOC_RISCV_SET8): Likewise.
+       (BFD_RELOC_RISCV_SET8): Likewise.
+       (BFD_RELOC_RISCV_SET16): Likewise.
+       (BFD_RELOC_RISCV_SET32): Likewise.
+       * elfnn-riscv.c (perform_relocation): Handle the new
+       relocations.
+       (_bfd_riscv_relax_tls_le): Likewise.
+       (_bfd_riscv_relax_align): Likewise.
+       (_bfd_riscv_relax_section): Likewise.
+       (howto_table): Likewise.
+       (riscv_reloc_map): Likewise.
+       (relax_func_t): New type.
+       (_bfd_riscv_relax_call): Add reserve_size argument, which
+       controls the maximal offset pessimism.  Correct type of max_alignment.
+       (_bfd_riscv_relax_lui): Likewise.
+       (_bfd_riscv_relax_tls_le): Likewise.
+       (_bfd_riscv_relax_align): Likewise.
+       (_bfd_riscv_relax_section): Compute the required reserve size
+       when relocating and use it to when calling relax_func.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Likewise.
+
 2016-12-20  Andrew Waterman  <andrew@sifive.com>
 
        * elfnn-riscv.c: Formatting and comment fixes throughout.
This page took 0.02311 seconds and 4 git commands to generate.