]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Add elf32_getchdr, elf64_getchdr and gelf_getchdr.
authorMark Wielaard <mjw@redhat.com>
Thu, 19 Nov 2015 23:12:37 +0000 (00:12 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 6 Jan 2016 13:27:10 +0000 (14:27 +0100)
commit5ddb50af4a488fdec358570502cbe058acb8ae93
tree050c8d623b4832395b39eeebc30ad8ad63e2f0cb
parent0c32b6f086b9838fe4b7d93575068554d0c420f7
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>
26 files changed:
libelf/ChangeLog
libelf/Makefile.am
libelf/abstract.h
libelf/chdr_xlate.h [new file with mode: 0644]
libelf/elf32_getchdr.c [new file with mode: 0644]
libelf/elf64_getchdr.c [new file with mode: 0644]
libelf/elf_error.c
libelf/elf_getdata.c
libelf/exttypes.h
libelf/gelf.h
libelf/gelf_fsize.c
libelf/gelf_getchdr.c [new file with mode: 0644]
libelf/gelf_xlate.c
libelf/gelf_xlate.h
libelf/libelf.h
libelf/libelf.map
libelf/libelfP.h
tests/ChangeLog
tests/Makefile.am
tests/elfgetchdr.c [new file with mode: 0644]
tests/msg_tst.c
tests/run-elfgetchdr.sh [new file with mode: 0755]
tests/testfile-zgabi32.bz2 [new file with mode: 0755]
tests/testfile-zgabi32be.bz2 [new file with mode: 0755]
tests/testfile-zgabi64.bz2 [new file with mode: 0755]
tests/testfile-zgabi64be.bz2 [new file with mode: 0755]