diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-11-20 00:12:37 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-01-06 14:27:10 +0100 |
commit | 5ddb50af4a488fdec358570502cbe058acb8ae93 (patch) | |
tree | 050c8d623b4832395b39eeebc30ad8ad63e2f0cb /libelf/libelfP.h | |
parent | 0c32b6f086b9838fe4b7d93575068554d0c420f7 (diff) | |
download | elfutils-5ddb50af4a488fdec358570502cbe058acb8ae93.tar.gz |
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 <mjw@redhat.com>
Diffstat (limited to 'libelf/libelfP.h')
-rw-r--r-- | libelf/libelfP.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libelf/libelfP.h b/libelf/libelfP.h index 993c6556..8ff8478c 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -1,5 +1,5 @@ /* Internal interfaces for libelf. - Copyright (C) 1998-2010 Red Hat, Inc. + Copyright (C) 1998-2010, 2015 Red Hat, Inc. This file is part of elfutils. Contributed by Ulrich Drepper <drepper@redhat.com>, 1998. @@ -138,6 +138,9 @@ enum ELF_E_INVALID_PHDR, ELF_E_NO_PHDR, ELF_E_INVALID_OFFSET, + ELF_E_INVALID_SECTION_TYPE, + ELF_E_INVALID_SECTION_FLAGS, + ELF_E_NOT_COMPRESSED, /* Keep this as the last entry. */ ELF_E_NUM }; |