aix: implement R_TOCU and R_TOCL relocations
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index c184a4e72fcda5e574fd1fbf525e8126ed8777f1..d955f78a980e0fea3f85816f83b87ce4d35623b7 100644 (file)
@@ -1,3 +1,53 @@
+2021-03-12  Clément Chigot  <clement.chigot@atos.net>
+
+       * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
+       New relocations.
+       * bfd-in2.h: Regenerate.
+       * libbfd.h: Regenerate.
+       * coff-rs6000.c (xcoff_calculate_relocation): Call
+       xcoff_reloc_type_toc for R_TOCU and R_TOCL.
+       (xcoff_howto_table): Remove src_mask for TOC relocations.
+       Add R_TOCU and R_TOCL howtos.
+       (_bfd_xcoff_reloc_type_lookup): Add cases for
+       BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
+       (xcoff_reloc_type_toc): Compute the whole offset.
+       Implement R_TOCU and R_TOCL.
+       * coff64-rs6000.c (xcoff64_calculate_relocation):
+       Likewise.
+       (xcoff64_howto_table): Likewise.
+       (xcoff64_reloc_type_lookup): Likewise.
+
+2021-03-12  Clément Chigot  <clement.chigot@atos.net>
+
+       * coff-rs6000.c (xcoff_calculate_relocation): Correct and
+       add new relocations.
+       (xcoff_howto_table): Likewise.
+       (xcoff_rtype2howto): Increase r_type maximum value.
+       (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
+       of create a new one from scratch.  Enable only some relocations
+       to have a changing r_size.
+       * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
+       (xcoff64_howto_table): Likewise.
+       (xcoff64_rtype2howto): Likewise.
+       (xcoff64_ppc_relocate_section): Likewise.
+       * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
+
+2021-03-12  Clément Chigot  <clement.chigot@atos.net>
+
+       * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
+
+2021-03-12  Clément Chigot  <clement.chigot@atos.net>
+
+       * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
+       * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
+       support for o_cputype field.  Avoid creating an empty a.out header
+       for XCOFF64.
+
+2021-03-12  Clément Chigot  <clement.chigot@atos.net>
+
+       * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
+       missing smclass.
+
 2021-03-11  Nelson Chu  <nelson.chu@sifive.com>
 
        * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
This page took 0.039228 seconds and 4 git commands to generate.