From febdfe65a81629bc2a764820c94f9d2912a90e38 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 8 Apr 2015 10:29:23 -0700 Subject: Add chdr_size, Chdr, Chdr_write and Chdr_data * elfcpp.h (Elf_sizes): Add chdr_size. (Chdr): New. (Chdr_write): Likewise. * elfcpp_internal.h (Chdr_data): Likewise. --- elfcpp/elfcpp_internal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'elfcpp/elfcpp_internal.h') diff --git a/elfcpp/elfcpp_internal.h b/elfcpp/elfcpp_internal.h index d800f7a..424a1f6 100644 --- a/elfcpp/elfcpp_internal.h +++ b/elfcpp/elfcpp_internal.h @@ -79,6 +79,16 @@ struct Shdr_data typename Elf_types::Elf_WXword sh_entsize; }; +// An ELF compression header. + +template +struct Chdr_data +{ + typename Elf_types::Elf_WXword ch_type; + typename Elf_types::Elf_WXword ch_size; + typename Elf_types::Elf_WXword ch_addralign; +}; + // An ELF segment header. We use template specialization for the // 32-bit and 64-bit versions because the fields are in a different // order. -- cgit v1.1