[PATCH] xtensa: fix PR ld/25861
augustine.sterling@gmail.com
augustine.sterling@gmail.com
Thu Apr 23 00:15:38 GMT 2020
On Tue, Apr 21, 2020 at 3:13 AM Max Filippov <jcmvbkbc@gmail.com> wrote:
> 2020-04-21 Max Filippov <jcmvbkbc@gmail.com>
> bfd/
> * bfd-in2.h: Regenerated.
> * elf32-xtensa.c (elf_howto_table): New entries for
> R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
> (elf_xtensa_reloc_type_lookup, elf_xtensa_do_reloc)
> (relax_section): Add cases for R_XTENSA_PDIFF{8,16,32} and
> R_XTENSA_NDIFF{8,16,32}.
> * libbfd.h (bfd_reloc_code_real_names): Add names for
> BFD_RELOC_XTENSA_PDIFF{8,16,32} and
> BFD_RELOC_XTENSA_NDIFF{8,16,32}.
> * reloc.c: Add documentation for BFD_RELOC_XTENSA_PDIFF{8,16,32}
> and BFD_RELOC_XTENSA_NDIFF{8,16,32}.
>
> binutils/
> * readelf.c (is_none_reloc): Recognize
> BFD_RELOC_XTENSA_PDIFF{8,16,32} and
> BFD_RELOC_XTENSA_NDIFF{8,16,32}.
>
> gas/
> * config/tc-xtensa.c (md_apply_fix): Replace
> BFD_RELOC_XTENSA_DIFF{8,16,32} generation with
> BFD_RELOC_XTENSA_PDIFF{8,16,32} and
> BFD_RELOC_XTENSA_NDIFF{8,16,32} generation.
> * testsuite/gas/xtensa/loc.d: Replace BFD_RELOC_XTENSA_DIFF16
> with BFD_RELOC_XTENSA_PDIFF16 in the expected output.
>
> include/
> * elf/xtensa.h (elf_xtensa_reloc_type): New entries for
> R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
>
> ld/
> * testsuite/ld-xtensa/relax-loc.d: New test definition.
> * testsuite/ld-xtensa/relax-loc.s: New test source.
> * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
This is ok.
More information about the Binutils
mailing list