summaryrefslogtreecommitdiff
path: root/include/libelfu/modelops.h
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-06-20 23:25:09 +0100
committernorly <ny-git@enpas.org>2013-06-20 23:25:09 +0100
commitfb56823e86ceff5e340a691ef2a6d5df81e02fac (patch)
treedf7750e090cafaaba6572f43929d1d5874e58645 /include/libelfu/modelops.h
parentfd5d1e4f3c968fa87b46ef1ca94f8b613df121ff (diff)
Add Elf/Phdr/Scn alloc/destroy
Diffstat (limited to 'include/libelfu/modelops.h')
-rw-r--r--include/libelfu/modelops.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libelfu/modelops.h b/include/libelfu/modelops.h
index 3dc44d8..afe6b96 100644
--- a/include/libelfu/modelops.h
+++ b/include/libelfu/modelops.h
@@ -21,6 +21,7 @@ void elfu_mRelocate(ElfuElf *metarget, ElfuScn *mstarget, ElfuScn *msrt);
size_t elfu_mPhdrCount(ElfuElf *me);
void elfu_mPhdrUpdateChildOffsets(ElfuPhdr *mp);
ElfuPhdr* elfu_mPhdrAlloc();
+ void elfu_mPhdrDestroy(ElfuPhdr* mp);
typedef void* (SectionHandlerFunc)(ElfuElf *me, ElfuScn *ms, void *aux1, void *aux2);
@@ -31,6 +32,11 @@ typedef void* (SectionHandlerFunc)(ElfuElf *me, ElfuScn *ms, void *aux1, void *a
char* elfu_mScnName(ElfuElf *me, ElfuScn *ms);
ElfuScn** elfu_mScnSortedByOffset(ElfuElf *me, size_t *count);
ElfuScn* elfu_mScnAlloc();
+ void elfu_mScnDestroy(ElfuScn* ms);
+
+
+ElfuElf* elfu_mElfAlloc();
+ void elfu_mElfDestroy(ElfuElf* me);
GElf_Addr elfu_mLayoutGetSpaceInPhdr(ElfuElf *me, GElf_Word size,