From: Disconnect3d Date: Mon, 8 Jun 2020 12:14:37 +0000 (+0200) Subject: Add PT_GNU_PROPERTY enum (#319) X-Git-Tag: v0.27~26 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5ee9be1c7c1f42457d8a8f8abe0ed39b46338ec;p=pyelftools.git 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`). --- 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, )