diff options
| author | Ulrich Drepper <[email protected]> | 2005-08-03 00:02:56 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2005-08-03 00:02:56 +0000 |
| commit | 41de488a0ad6679e816dbab960351e5f62ab8ead (patch) | |
| tree | d4387847c11e48ccc8fa55ace24bcd2a595d0d84 /libelf/libelfP.h | |
| parent | c911c9efe553d9af2d4fb0d420d8b614983e16ac (diff) | |
Add several more elflint tests:
- check whether dynamic section matches PT_DYNAMIC program header entry
- make sure text relocation flag is used correctly
libelf needed one extension for this.
Diffstat (limited to 'libelf/libelfP.h')
| -rw-r--r-- | libelf/libelfP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libelf/libelfP.h b/libelf/libelfP.h index 100f349a..fd6f825c 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -117,6 +117,7 @@ enum ELF_E_GROUP_NOT_REL, ELF_E_INVALID_PHDR, ELF_E_NO_PHDR, + ELF_E_INVALID_OFFSET, /* Keep this as the last entry. */ ELF_E_NUM }; @@ -453,6 +454,10 @@ extern Elf32_Phdr *__elf32_newphdr_internal (Elf *__elf, size_t __cnt) attribute_hidden; extern Elf64_Phdr *__elf64_newphdr_internal (Elf *__elf, size_t __cnt) attribute_hidden; +extern Elf_Scn *__elf32_offscn_internal (Elf *__elf, Elf32_Off __offset) + attribute_hidden; +extern Elf_Scn *__elf64_offscn_internal (Elf *__elf, Elf64_Off __offset) + attribute_hidden; extern int __elf_getshnum_internal (Elf *__elf, size_t *__dst) attribute_hidden; extern int __elf_getshstrndx_internal (Elf *__elf, size_t *__dst) |
