From 8dc375da96ea3c15445ea03978d48894c5816e88 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 16 Apr 2021 21:48:57 +0200 Subject: LibElf: Allow PT_GNU_EH_FRAME program headers These are built when compiling an executable with exception support. --- Userland/Libraries/LibELF/Validation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/Libraries/LibELF') diff --git a/Userland/Libraries/LibELF/Validation.cpp b/Userland/Libraries/LibELF/Validation.cpp index 2b48c17672..1336cb91f0 100644 --- a/Userland/Libraries/LibELF/Validation.cpp +++ b/Userland/Libraries/LibELF/Validation.cpp @@ -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: -- cgit v1.2.3