summaryrefslogtreecommitdiff
path: root/plugins/elf/python/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/elf/python/format.c')
-rw-r--r--plugins/elf/python/format.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/plugins/elf/python/format.c b/plugins/elf/python/format.c
index 87ec5e6..e0195c4 100644
--- a/plugins/elf/python/format.c
+++ b/plugins/elf/python/format.c
@@ -174,16 +174,8 @@ PyTypeObject *get_python_elf_format_type(void)
METH_VARARGS,
"find_sections_by_type($self, type, /)\n--\n\nFind sections using a given type."
},
- {
- "find_dynamic_item_by_index", py_elf_format_find_dynamic_item_by_index,
- METH_VARARGS,
- "find_dynamic_item_by_index($self, index, /)\n--\n\nFind an item from the dynamic segment using a given index."
- },
- {
- "find_dynamic_item_by_type", py_elf_format_find_dynamic_item_by_type,
- METH_VARARGS,
- "find_dynamic_item_by_type($self, type, /)\n--\n\nFind an item from the dynamic segment using a given type."
- },
+ ELF_FORMAT_FIND_DYNAMIC_ITEM_BY_INDEX_METHOD,
+ ELF_FORMAT_FIND_DYNAMIC_ITEM_BY_TYPE_METHOD,
{ NULL }
};
@@ -212,10 +204,7 @@ PyTypeObject *get_python_elf_format_type(void)
"sizeof_rel", py_elf_format_get_sizeof_rel, NULL,
"Provide the size of Elf_Rel structures for the loaded format.", NULL
},
- {
- "needed", py_elf_format_get_needed, NULL,
- "Provide the list of requiered shared objects.", NULL
- },
+ ELF_FORMAT_NEEDED_ATTRIB,
{ NULL }
};