[PATCH 2/2] all: improve R_NEG support for AIX
Nick Clifton
nickc@redhat.com
Mon Apr 19 16:34:01 GMT 2021
Hi Clement,
> bfd/ChangeLog:
> C2021-04-19 Clément Chigot <clement.chigot@atos.net>
>
> PR binutils/21700
> * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
> * bfd-in2.h: Regenerate.
> * libbfd.h: Regenerate.
> * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
> BFD_RELOC_PPC_NEG handler.
> (xcoff_reloc_type_neg): Correctly substract addend.
> * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
> howto.
> (xcoff64_rtype2howto): Add handler for R_NEG_32.
> (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
>
> gas/ChangeLog:
> 2021-04-19 Clément Chigot <clement.chigot@atos.net>
>
> PR binutils/21700
> * config/tc-ppc.c (ppc_get_csect_to_adjust): New function.
> (ppc_fix_adjustable): Manage fx_subsy part.
> (tc_gen_reloc): Create second relocation when both
> fx_addsy and fx_subsy are provided.
> * config/tc-ppc.h (RELOC_EXPANSION_POSSIBLE): New define.
> (MAX_RELOC_EXPANSION): Likewise.
> (TC_FORCE_RELOCATION_SUB_SAME): Likewise
> (UNDEFINED_DIFFERENCE_OK): Likewise
> * testsuite/gas/all/gas.exp: Skip difference between two
> undefined symbols test.
>
> ld/ChangeLog:
> 2021-04-19 Clément Chigot <clement.chigot@atos.net>
>
> PR binutils/21700
> * testsuite/ld-powerpc/aix52.exp: Add new test.
> * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
> * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
> * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
> * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
>
Approved - please apply.
Cheers
Nick
More information about the Binutils
mailing list