From 950b40ea13696b69fbcab011dbbc6c757c4baf3f Mon Sep 17 00:00:00 2001 From: tyb0807 Date: Wed, 16 Aug 2017 14:18:50 +0200 Subject: [PATCH] Adding new OS ABI to ELF header parsing (#153) * Add OS ABI to ELF header * Add new OS ABI to description --- elftools/elf/descriptions.py | 6 +++++- elftools/elf/enums.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/elftools/elf/descriptions.py b/elftools/elf/descriptions.py index cda6e33..26d6834 100644 --- a/elftools/elf/descriptions.py +++ b/elftools/elf/descriptions.py @@ -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', ) diff --git a/elftools/elf/enums.py b/elftools/elf/enums.py index b85a18a..904a3ba 100644 --- a/elftools/elf/enums.py +++ b/elftools/elf/enums.py @@ -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, -- 2.30.2