From a5ee9be1c7c1f42457d8a8f8abe0ed39b46338ec Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Mon, 8 Jun 2020 14:14:37 +0200 Subject: [PATCH] Add PT_GNU_PROPERTY enum (#319) This commit adds the missing `PT_GNU_PROPERTY` program header enums. Additional information regarding the `PT_GNU_PROPERTY` can be found at: * https://reviews.llvm.org/D70959 * https://github.com/hjl-tools/linux-abi/wiki/linux-abi-draft.pdf (linked in above url) * https://sourceware.org/pipermail/libc-alpha/2020-May/113841.html (commit in libc adding this value) This program header can be found, e.g., in a glibc in Ubuntu 20.04 (see `docker run --rm -it ubuntu:20.04 cat /usr/lib/x86_64-linux-gnu/libc-2.31.so > libc-2.31.so`). --- elftools/elf/enums.py | 1 + 1 file changed, 1 insertion(+) diff --git a/elftools/elf/enums.py b/elftools/elf/enums.py index 94713e0..1af3973 100644 --- a/elftools/elf/enums.py +++ b/elftools/elf/enums.py @@ -397,6 +397,7 @@ ENUM_P_TYPE_BASE = dict( PT_GNU_EH_FRAME=0x6474e550, PT_GNU_STACK=0x6474e551, PT_GNU_RELRO=0x6474e552, + PT_GNU_PROPERTY=0x6474e553, _default_=Pass, ) -- 2.30.2