diff options
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 */ |