diff options
author | Alan Modra <amodra@gmail.com> | 2019-10-25 12:21:35 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-10-25 13:29:44 +1030 |
commit | c0c121b01c8a9408ae22ee9007dd0273f4c8d0be (patch) | |
tree | 27f0cac4e340b47a217a797cf5ccfa6ce53530c6 /gdb/arch-utils.h | |
parent | e2ffdcea6c797fe17886024048f33b178b864a67 (diff) | |
download | gdb-c0c121b01c8a9408ae22ee9007dd0273f4c8d0be.zip gdb-c0c121b01c8a9408ae22ee9007dd0273f4c8d0be.tar.gz gdb-c0c121b01c8a9408ae22ee9007dd0273f4c8d0be.tar.bz2 |
readelf PT_PHDR check
When PT_PHDR isn't covered by a PT_LOAD header, p_vaddr in PT_PHDR
isn't valid but the value might just pass a vaddr test. So test
p_offset as well.
* readelf.c (process_program_headers): Check PT_PHDR p_offset
as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
Diffstat (limited to 'gdb/arch-utils.h')
0 files changed, 0 insertions, 0 deletions