Adding new OS ABI to ELF header parsing (#153)
authortyb0807 <sontuan.vu119@gmail.com>
Wed, 16 Aug 2017 12:18:50 +0000 (14:18 +0200)
committerEli Bendersky <eliben@users.noreply.github.com>
Wed, 16 Aug 2017 12:18:50 +0000 (05:18 -0700)
* Add OS ABI to ELF header

* Add new OS ABI to description

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

index cda6e331541d10a1ef7e3d3a4ee1c5ee595a4d56..26d683423387e4c3bf99ce4ed95de2785a50d4de 100644 (file)
@@ -171,7 +171,11 @@ _DESCR_EI_OSABI = dict(
     ELFOSABI_OPENVMS='VMS - OpenVMS',
     ELFOSABI_NSK='HP - Non-Stop Kernel',
     ELFOSABI_AROS='AROS',
-    ELFOSABI_ARM='ARM',
+    ELFOSABI_FENIXOS='Fenix OS',
+    ELFOSABI_CLOUD='Nuxi - CloudABI',
+    ELFOSABI_SORTIX='Sortix',
+    ELFOSABI_ARM_AEABI='ARM - EABI',
+    ELFOSABI_ARM='ARM - ABI',
     ELFOSABI_STANDALONE='Standalone App',
 )
 
index b85a18aa2fb017a148f29f01a0ece345c54f4163..904a3ba2a1031f4a57e545dbea0c6882b7a80eb0 100644 (file)
@@ -47,6 +47,9 @@ ENUM_EI_OSABI = dict(
     ELFOSABI_OPENVMS=13,
     ELFOSABI_NSK=14,
     ELFOSABI_AROS=15,
+    ELFOSABI_FENIXOS=16,
+    ELFOSABI_CLOUD=17,
+    ELFOSABI_SORTIX=53,
     ELFOSABI_ARM_AEABI=64,
     ELFOSABI_ARM=97,
     ELFOSABI_STANDALONE=255,