diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-02-16 17:58:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-02-16 17:58:35 (GMT) |
commit | d5e94fd2895a5f9c4903bdaddf75727a54aec181 (patch) | |
tree | d2f11a1862e6df3d86c4f65aeb98e6fc04e7cf3b /plugins/elf/python/constants.c | |
parent | d93d67a2408fd5c09e73b40fdbd28d4914254a90 (diff) |
Extended the ELF format support.
Diffstat (limited to 'plugins/elf/python/constants.c')
-rw-r--r-- | plugins/elf/python/constants.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/elf/python/constants.c b/plugins/elf/python/constants.c index 1e92616..098443c 100644 --- a/plugins/elf/python/constants.c +++ b/plugins/elf/python/constants.c @@ -62,10 +62,16 @@ static bool define_python_binary_format_common_constants(PyTypeObject *obj_type) /* Composition du champ e_ident */ + if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG0); + if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG1); + if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG2); + if (result) result = PyDict_AddIntMacro(obj_type, EI_MAG3); if (result) result = PyDict_AddIntMacro(obj_type, EI_CLASS); if (result) result = PyDict_AddIntMacro(obj_type, EI_DATA); if (result) result = PyDict_AddIntMacro(obj_type, EI_VERSION); if (result) result = PyDict_AddIntMacro(obj_type, EI_OSABI); + if (result) result = PyDict_AddIntMacro(obj_type, EI_ABIVERSION); + if (result) result = PyDict_AddIntMacro(obj_type, EI_PAD); /* ... EI_CLASS */ |