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/lookup.h | |
parent | 7b04e102bb2ad0189f66d4878fe92d6fa22a1990 (diff) |
Add run-time sanity checks
Diffstat (limited to 'include/libelfu/lookup.h')
-rw-r--r-- | include/libelfu/lookup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libelfu/lookup.h b/include/libelfu/lookup.h index 2cca5df..2506512 100644 --- a/include/libelfu/lookup.h +++ b/include/libelfu/lookup.h @@ -7,8 +7,12 @@ #include <libelfu/types.h> char* elfu_sectionName(Elf *e, Elf_Scn *scn); + Elf_Scn* elfu_sectionByName(Elf *e, char *name); + Elf_Scn* elfu_firstSectionInSegment(Elf *e, GElf_Phdr *phdr); Elf_Scn* elfu_lastSectionInSegment(Elf *e, GElf_Phdr *phdr); +size_t elfu_scnSizeFile(const GElf_Shdr *shdr); + #endif |