binutils-gdb/elfcpp
H.J. Lu 49ba15a23a gold: Add put_ch_reserved to 64-bit Chdr_write
The 64-bit ELF compression header has a reserved field.  It should be
cleared to avoid random bits in it.

elfcpp/

	PR gold/21857
	* elfcpp.h (Chdr_write): Add put_ch_reserved.
	(Chdr_write<64, true>::put_ch_reserved): New.
	(Chdr_write<64, false>::put_ch_reserved): Likewise.

gold/

	PR gold/21857
	* compressed_output.cc (Output_compressed_section::set_final_data_size):
	Call put_ch_reserved to clear the reserved field for 64-bit ELF.
2017-07-28 13:40:01 -07:00
..
aarch64.h
arm.h
ChangeLog gold: Add put_ch_reserved to 64-bit Chdr_write 2017-07-28 13:40:01 -07:00
ChangeLog-0815
ChangeLog-2016
dwarf.h [GOLD] undef after using DW_IDX and friends 2017-07-03 21:49:34 +09:30
elfcpp_file.h
elfcpp_internal.h
elfcpp_swap.h
elfcpp.h gold: Add put_ch_reserved to 64-bit Chdr_write 2017-07-28 13:40:01 -07:00
i386.h
mips.h
powerpc.h
README
s390.h
sparc.h
tilegx.h
x86_64.h

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

elfcpp is a C++ library for reading and writing ELF information.  This
was written to support gold, the ELF linker, and may not be generally
useful.

elfcpp does not do file I/O.  It deals only with offsets and memory
data.

For efficiency, most accessors are templates with two arguments: the
ELF file class (32 or 64 bits) and the endianness.


Copyright (C) 2012-2017 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.