summaryrefslogtreecommitdiff
path: root/plugins/elf/python/constants.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-02-16 17:58:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-02-16 17:58:35 (GMT)
commitd5e94fd2895a5f9c4903bdaddf75727a54aec181 (patch)
treed2f11a1862e6df3d86c4f65aeb98e6fc04e7cf3b /plugins/elf/python/constants.c
parentd93d67a2408fd5c09e73b40fdbd28d4914254a90 (diff)
Extended the ELF format support.
Diffstat (limited to 'plugins/elf/python/constants.c')
-rw-r--r--plugins/elf/python/constants.c6
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 */