diff options
author | Alan Modra <amodra@gmail.com> | 2021-09-08 13:18:02 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-09-08 22:22:34 +0930 |
commit | 733ae98cb8fb0d5653887cfd79aec3cfe5e44846 (patch) | |
tree | 98dcd9c74201869ba26ae57e9d6931c3bbd1cf32 /gas/stamp-h.in | |
parent | beaddc1a805d70131ffbeaee4d8d4ba41b9e5a2e (diff) | |
download | gdb-733ae98cb8fb0d5653887cfd79aec3cfe5e44846.zip gdb-733ae98cb8fb0d5653887cfd79aec3cfe5e44846.tar.gz gdb-733ae98cb8fb0d5653887cfd79aec3cfe5e44846.tar.bz2 |
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.
Diffstat (limited to 'gas/stamp-h.in')
0 files changed, 0 insertions, 0 deletions