commit | 733ae98cb8fb0d5653887cfd79aec3cfe5e44846 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Wed Sep 08 13:18:02 2021 +0930 |
committer | Alan Modra <amodra@gmail.com> | Wed Sep 08 22:22:34 2021 +0930 |
tree | 98dcd9c74201869ba26ae57e9d6931c3bbd1cf32 | |
parent | beaddc1a805d70131ffbeaee4d8d4ba41b9e5a2e [diff] |
PowerPC64, sanity check r_offset in relocate_section This hardens the powerpc64 linker code transformations. * elf64-ppc.c (is_8byte_reloc, offset_in_range): New functions. (ppc64_elf_relocate_section): Sanity check r_offset before accessing section contents for various code transformations.