summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibELF
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-16 21:48:57 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-18 10:55:25 +0200
commit8dc375da96ea3c15445ea03978d48894c5816e88 (patch)
treeae1c72890260c7f10be5fd7054bbd7b6b8211a65 /Userland/Libraries/LibELF
parenta1e0cf80e8fee95e409a3939e4cbe866fe2e8423 (diff)
downloadserenity-8dc375da96ea3c15445ea03978d48894c5816e88.zip
LibElf: Allow PT_GNU_EH_FRAME program headers
These are built when compiling an executable with exception support.
Diffstat (limited to 'Userland/Libraries/LibELF')
-rw-r--r--Userland/Libraries/LibELF/Validation.cpp1
1 files changed, 1 insertions, 0 deletions
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: