Basic support for ARM in machine header.
authorMatthew Fernandez <matthew.fernandez@nicta.com.au>
Thu, 17 Jan 2013 01:14:34 +0000 (12:14 +1100)
committerMatthew Fernandez <matthew.fernandez@nicta.com.au>
Thu, 17 Jan 2013 01:14:34 +0000 (12:14 +1100)
elftools/elf/elffile.py
elftools/elf/enums.py

index b70e9dcfc9c061832a980e4065aa597ee524bf5c..51a645d18420b2390c05f7179b7afbb046215d1f 100644 (file)
@@ -155,6 +155,8 @@ class ELFFile(object):
             return 'x64'
         elif self['e_machine'] in ('EM_386', 'EM_486'):
             return 'x86'
+        elif self['e_machine'] == 'EM_ARM':
+            return 'ARM'
         else:
             return '<unknown>'
 
index 78302ae745079b75f8b848436470503952ea091c..373706c5765b0608c0afb3d8389f3ccdbfdb2a95 100644 (file)
@@ -78,6 +78,7 @@ ENUM_E_MACHINE = dict(
     EM_MIPS=8,
     EM_S370=9,
     EM_MIPS_RS4_BE=10,
+    EM_ARM=40,
     EM_IA_64=50,
     EM_X86_64=62,
     EM_AVR=83,