diff options
| author | Mark Wielaard <[email protected]> | 2015-11-20 00:12:37 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2016-01-06 14:27:10 +0100 |
| commit | 5ddb50af4a488fdec358570502cbe058acb8ae93 (patch) | |
| tree | 050c8d623b4832395b39eeebc30ad8ad63e2f0cb /tests/msg_tst.c | |
| parent | 0c32b6f086b9838fe4b7d93575068554d0c420f7 (diff) | |
libelf: Add elf32_getchdr, elf64_getchdr and gelf_getchdr.
Elf_Data of a compressed section has type ELF_T_CHDR. This type can be
xlated to the file or memory representation. This will make sure the Chdr
is in the correct endianess. The compressed data following the Chdr isn't
translated.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/msg_tst.c')
| -rw-r--r-- | tests/msg_tst.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/msg_tst.c b/tests/msg_tst.c index 10ff0f73..539c5ddb 100644 --- a/tests/msg_tst.c +++ b/tests/msg_tst.c @@ -74,7 +74,10 @@ static struct "program header only allowed in executables, shared objects, \ and core files" }, { ELF_E_NO_PHDR, "file has no program header" }, - { ELF_E_INVALID_OFFSET, "invalid offset" } + { ELF_E_INVALID_OFFSET, "invalid offset" }, + { ELF_E_INVALID_SECTION_TYPE , "invalid section type" }, + { ELF_E_INVALID_SECTION_FLAGS , "invalid section flags" }, + { ELF_E_NOT_COMPRESSED, "section does not contain compressed data" } }; |
