From 2affa1e1f0c64a2ca4d7a69761932b070c1bdc52 Mon Sep 17 00:00:00 2001 From: norly Date: Sat, 22 Jun 2013 01:00:38 +0100 Subject: PHDR: find by addr/offset --- 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 3a5d7ea..c6d5c30 100644 --- a/include/libelfu/modelops.h +++ b/include/libelfu/modelops.h @@ -21,6 +21,8 @@ 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); +ElfuPhdr* elfu_mPhdrByAddr(ElfuElf *me, GElf_Addr addr); +ElfuPhdr* elfu_mPhdrByOffset(ElfuElf *me, GElf_Off offset); void elfu_mPhdrUpdateChildOffsets(ElfuPhdr *mp); ElfuPhdr* elfu_mPhdrAlloc(); void elfu_mPhdrDestroy(ElfuPhdr* mp); -- cgit v1.2.3