diff options
author | norly <ny-git@enpas.org> | 2013-06-20 23:47:01 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-06-21 00:42:22 +0100 |
commit | e68a6c6cc16279c72e270daae0548ea7c0f11c6e (patch) | |
tree | 1bb268b01d557bf64744c1a0794acea2fad9286b /include | |
parent | fb56823e86ceff5e340a691ef2a6d5df81e02fac (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')
-rw-r--r-- | include/libelfu/modelops.h | 2 |
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(); |