Support Android compressed rel/rela sections (#357)
authorLeadroyaL <LeadroyaL@users.noreply.github.com>
Sun, 18 Apr 2021 13:30:12 +0000 (21:30 +0800)
committerGitHub <noreply@github.com>
Sun, 18 Apr 2021 13:30:12 +0000 (06:30 -0700)
Ref: https://android.googlesource.com/platform/bionic/+/refs/tags/android-11.0.0_r35/libc/include/elf.h

elftools/elf/enums.py

index 1af3973633cb3a5ad5bb5a75c20ee563b6c8fcaa..bebf7a7f32e9664e6be3bdec3e8405e13c3b3279 100644 (file)
@@ -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,