From e68a6c6cc16279c72e270daae0548ea7c0f11c6e Mon Sep 17 00:00:00 2001 From: norly Date: Thu, 20 Jun 2013 23:47:01 +0100 Subject: LOAD PHDRs at top level, others as children. mPhdrForall(). The reference binaries had to be updated as PHDRs are now reordered. --- include/libelfu/modelops.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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(); -- cgit v1.2.3