Remove the PT_ARM_UNWIND enum
authorEli Bendersky <eliben@gmail.com>
Wed, 26 Oct 2016 03:07:43 +0000 (20:07 -0700)
committerEli Bendersky <eliben@gmail.com>
Wed, 26 Oct 2016 03:07:43 +0000 (20:07 -0700)
According to the ARM ABI it's an alias for PT_ARM_EXIDX; having them both in the
same enum value confuses parsing. Keeping EXIDX rather than UNWIND because
binutils seems to be using it.

Related to #121

elftools/dwarf/structs.py
elftools/elf/descriptions.py
elftools/elf/enums.py

index e25dc843f63b74ac45371cea962b50dc13f0cb80..bdd79da5f33a08188ca0833da2b31c44b2997c4f 100644 (file)
@@ -139,7 +139,6 @@ class DWARFStructs(object):
             # Adapts a Struct that parses forward a full initial length field.
             # Only if the first word is the continuation value, the second
             # word is parsed from the stream.
-            #
             return _InitialLengthAdapter(
                 Struct(name,
                     self.Dwarf_uint32('first'),
index f085b8786df4f03de505275688c69c6f25e9083e..cda6e331541d10a1ef7e3d3a4ee1c5ee595a4d56 100644 (file)
@@ -217,7 +217,6 @@ _DESCR_P_TYPE = dict(
     PT_GNU_RELRO='GNU_RELRO',
     PT_ARM_ARCHEXT='ARM_ARCHEXT',
     PT_ARM_EXIDX='ARM_EXIDX',
-    PT_ARM_UNWIND='ARM_UNWIND',
     PT_AARCH64_ARCHEXT='AARCH64_ARCHEXT',
     PT_AARCH64_UNWIND='AARCH64_UNWIND',
 )
index dbeb20eb57443a981b95be98d2439c4fbc1978b4..ddae433420a345a22cdacd8a9711858d9bc19952 100644 (file)
@@ -259,7 +259,6 @@ ENUM_P_TYPE = dict(
     PT_GNU_RELRO=0x6474e552,
     PT_ARM_ARCHEXT=0x70000000,
     PT_ARM_EXIDX=0x70000001,
-    PT_ARM_UNWIND=0x70000001,
     PT_AARCH64_ARCHEXT=0x70000000,
     PT_AARCH64_UNWIND=0x70000001,
     _default_=Pass,