LibElf: Allow PT_GNU_EH_FRAME program headers

These are built when compiling an executable with exception support.
This commit is contained in:
Gunnar Beutner 2021-04-16 21:48:57 +02:00 committed by Andreas Kling
parent a1e0cf80e8
commit 8dc375da96
Notes: sideshowbarker 2024-07-18 19:28:53 +09:00

View file

@ -271,6 +271,7 @@ bool validate_program_headers(const Elf32_Ehdr& elf_header, size_t file_size, co
break;
case PT_LOAD:
case PT_DYNAMIC:
case PT_GNU_EH_FRAME:
case PT_NOTE:
case PT_PHDR:
case PT_TLS: