From: LeadroyaL Date: Sun, 18 Apr 2021 13:30:12 +0000 (+0800) Subject: Support Android compressed rel/rela sections (#357) X-Git-Tag: v0.28~19 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6436600fc20ad94c2107fe06f522726c4f450dd;p=pyelftools.git Support Android compressed rel/rela sections (#357) Ref: https://android.googlesource.com/platform/bionic/+/refs/tags/android-11.0.0_r35/libc/include/elf.h --- diff --git a/elftools/elf/enums.py b/elftools/elf/enums.py index 1af3973..bebf7a7 100644 --- a/elftools/elf/enums.py +++ b/elftools/elf/enums.py @@ -507,6 +507,14 @@ ENUM_D_TAG_COMMON = dict( DT_PREINIT_ARRAYSZ=33, DT_NUM=34, DT_LOOS=0x6000000d, + DT_ANDROID_REL=0x6000000f, + DT_ANDROID_RELSZ=0x60000010, + DT_ANDROID_RELA=0x60000011, + DT_ANDROID_RELASZ=0x60000012, + DT_ANDROID_RELR=0x6fffe000, + DT_ANDROID_RELRSZ=0x6fffe001, + DT_ANDROID_RELRENT=0x6fffe003, + DT_ANDROID_RELRCOUNT=0x6fffe005, DT_HIOS=0x6ffff000, DT_LOPROC=0x70000000, DT_HIPROC=0x7fffffff,