aboutsummaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp_internal.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-04-08 10:29:23 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-08 10:29:40 -0700
commitfebdfe65a81629bc2a764820c94f9d2912a90e38 (patch)
treec88e3d281ee942fbe9c69827dea9116bfcfdabd3 /elfcpp/elfcpp_internal.h
parent91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4 (diff)
downloadgdb-febdfe65a81629bc2a764820c94f9d2912a90e38.zip
gdb-febdfe65a81629bc2a764820c94f9d2912a90e38.tar.gz
gdb-febdfe65a81629bc2a764820c94f9d2912a90e38.tar.bz2
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.
Diffstat (limited to 'elfcpp/elfcpp_internal.h')
-rw-r--r--elfcpp/elfcpp_internal.h10
1 files changed, 10 insertions, 0 deletions
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<size>::Elf_WXword sh_entsize;
};
+// An ELF compression header.
+
+template<int size>
+struct Chdr_data
+{
+ typename Elf_types<size>::Elf_WXword ch_type;
+ typename Elf_types<size>::Elf_WXword ch_size;
+ typename Elf_types<size>::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.