diff options
author | norly <ny-git@enpas.org> | 2013-02-23 01:46:32 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-23 01:49:43 +0000 |
commit | 58b6f8de8862c9ccba763d3607afb5495727e4d6 (patch) | |
tree | ca23423174e1238cebc4f77ab3602bf0b8e4864e /include/libelfu/model.h | |
parent | 7b04e102bb2ad0189f66d4878fe92d6fa22a1990 (diff) |
Add run-time sanity checks
Diffstat (limited to 'include/libelfu/model.h')
-rw-r--r-- | include/libelfu/model.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/libelfu/model.h b/include/libelfu/model.h index 1b5f6b6..588d57a 100644 --- a/include/libelfu/model.h +++ b/include/libelfu/model.h @@ -37,8 +37,7 @@ typedef struct { CIRCLEQ_HEAD(ScnList, ElfuScn) scnList; CIRCLEQ_HEAD(PhdrList, ElfuPhdr) phdrList; - ElfuPhdr *entryBase; - GElf_Addr *entryOffs; + ElfuScn *shstrtab; } ElfuElf; @@ -46,6 +45,10 @@ typedef struct { size_t elfu_countSections(ElfuElf *me); size_t elfu_countPHDRs(ElfuElf *me); +char* elfu_modelScnName(ElfuElf *me, ElfuScn *ms); + +int elfu_modelCheck(ElfuElf *me); + ElfuPhdr* elfu_modelFromPhdr(GElf_Phdr *phdr); ElfuScn* elfu_modelFromSection(Elf_Scn *scn); ElfuElf* elfu_modelFromElf(Elf *e); |