summaryrefslogtreecommitdiff
path: root/include/libelfu
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-06-20 23:47:01 +0100
committernorly <ny-git@enpas.org>2013-06-21 00:42:22 +0100
commite68a6c6cc16279c72e270daae0548ea7c0f11c6e (patch)
tree1bb268b01d557bf64744c1a0794acea2fad9286b /include/libelfu
parentfb56823e86ceff5e340a691ef2a6d5df81e02fac (diff)
LOAD PHDRs at top level, others as children. mPhdrForall().
The reference binaries had to be updated as PHDRs are now reordered.
Diffstat (limited to 'include/libelfu')
-rw-r--r--include/libelfu/modelops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libelfu/modelops.h b/include/libelfu/modelops.h
index afe6b96..e5702f7 100644
--- a/include/libelfu/modelops.h
+++ b/include/libelfu/modelops.h
@@ -18,6 +18,8 @@ void elfu_mSymtabFlatten(ElfuElf *me);
void elfu_mRelocate(ElfuElf *metarget, ElfuScn *mstarget, ElfuScn *msrt);
+typedef void* (PhdrHandlerFunc)(ElfuElf *me, ElfuPhdr *mp, void *aux1, void *aux2);
+ void* elfu_mPhdrForall(ElfuElf *me, PhdrHandlerFunc f, void *aux1, void *aux2);
size_t elfu_mPhdrCount(ElfuElf *me);
void elfu_mPhdrUpdateChildOffsets(ElfuPhdr *mp);
ElfuPhdr* elfu_mPhdrAlloc();