summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-06-22 01:00:38 +0100
committernorly <ny-git@enpas.org>2013-06-22 01:00:38 +0100
commit2affa1e1f0c64a2ca4d7a69761932b070c1bdc52 (patch)
treec44be25b1666c70cb4afc5a0b07b8a2f7745685d /include
parent8e6a1501ab9d8020950bc1883d14d14dd76fdb5f (diff)
PHDR: find by addr/offset
Diffstat (limited to 'include')
-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 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);