Arm exidx (#172)
authorAG <github@mzpqnxow.com>
Sun, 26 Nov 2017 21:41:04 +0000 (16:41 -0500)
committerEli Bendersky <eliben@users.noreply.github.com>
Sun, 26 Nov 2017 21:41:04 +0000 (13:41 -0800)
* Fix merge conflicts for ABIFLAGS branch

* Fix EXIDX output to match binutils readelf -e

elftools/elf/descriptions.py
elftools/elf/enums.py

index b40f947d72cdda1e8b9ee1b056f0dab2307ad18c..f8b6f9bee4e875194404b589961bef26ca422944 100644 (file)
@@ -279,10 +279,11 @@ _DESCR_P_TYPE = dict(
     PT_GNU_STACK='GNU_STACK',
     PT_GNU_RELRO='GNU_RELRO',
     PT_ARM_ARCHEXT='ARM_ARCHEXT',
-    PT_ARM_EXIDX='ARM_EXIDX',
+    PT_ARM_EXIDX='EXIDX',  # binutils calls this EXIDX, not ARM_EXIDX
     PT_AARCH64_ARCHEXT='AARCH64_ARCHEXT',
     PT_AARCH64_UNWIND='AARCH64_UNWIND',
-    PT_TLS='TLS'
+    PT_TLS='TLS',
+    PT_MIPS_ABIFLAGS='ABIFLAGS'
 )
 
 
@@ -317,7 +318,7 @@ _DESCR_SH_TYPE = dict(
     SHT_GNU_verneed='VERNEED',
     SHT_GNU_versym='VERSYM',
     SHT_GNU_LIBLIST='GNU_LIBLIST',
-    SHT_ARM_EXIDX='ARM_EXIDX',
+    SHT_ARM_EXIDX='EXIDX',  # binutils calls this EXIDX, not ARM_EXIDX
     SHT_ARM_PREEMPTMAP='ARM_PREEMPTMAP',
     SHT_ARM_ATTRIBUTES='ARM_ATTRIBUTES',
     SHT_ARM_DEBUGOVERLAY='ARM_DEBUGOVERLAY',
index dede76241c498f2c34b4a593ff8ba9b7fce3f2dc..380cd2c2a266aa05ad37ade76c8d1a3fea7a242a 100644 (file)
@@ -373,6 +373,7 @@ ENUM_P_TYPE = dict(
     PT_ARM_EXIDX=0x70000001,
     PT_AARCH64_ARCHEXT=0x70000000,
     PT_AARCH64_UNWIND=0x70000001,
+    PT_MIPS_ABIFLAGS=0x70000003,
     _default_=Pass,
 )