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.
This commit is contained in:
H.J. Lu 2015-04-08 10:29:23 -07:00
parent 91fb4b1a83
commit febdfe65a8
3 changed files with 78 additions and 0 deletions

View file

@ -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.