From a6436600fc20ad94c2107fe06f522726c4f450dd Mon Sep 17 00:00:00 2001 From: LeadroyaL Date: Sun, 18 Apr 2021 21:30:12 +0800 Subject: [PATCH] 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 --- elftools/elf/enums.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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, -- 2.30.2