]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
R_PPC64_GOT_LO_DS and R_PPC64_GOT_HA sanity check
authorAlan Modra <amodra@gmail.com>
Thu, 15 Oct 2020 22:56:32 +0000 (09:26 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 28 Jan 2021 01:22:39 +0000 (11:52 +1030)
commit662f9a91098d29a36a371aa12ab79ec3b58d0748
treea6f4d5204fb411f49b115073c0787d7abb41691c
parent7601b250d53db736850eb7f7cc033a10dda2a23b
R_PPC64_GOT_LO_DS and R_PPC64_GOT_HA sanity check

The previous sanity check allowed a ld on the HA reloc and addis
on the LO_DS.

* elf64-ppc.c (ppc64_elf_relocate_section): Tighten sanity check
on R_PPC64_GOT_LO_DS and R_PPC64_GOT_HA instructions.

(cherry picked from commit fba8689ad3b72a3e895ebd41485d747dba5da811)
bfd/ChangeLog
bfd/elf64-ppc.c