PowerPC, sanity check r_offset in relocate_section

* elf32-ppc.c (offset_in_range): New function.
	(ppc_elf_vle_split16): Sanity check r_offset before accessing
	section contents.  Return status.
        (ppc_elf_relocate_section): Sanity check r_offset before
        accessing section contents.  Don't segfault on NULL howto.
This commit is contained in:
Alan Modra 2021-09-09 10:59:24 +09:30
parent 9f81b99e24
commit e7776f52fe

File diff suppressed because it is too large Load Diff