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 Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
arm.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
ChangeLog gold: Add put_ch_reserved to 64-bit Chdr_write 2017-07-28 13:40:01 -07:00
ChangeLog-0815
ChangeLog-2016 ChangeLog rotation 2017-01-02 13:55:05 +10:30
dwarf.h [GOLD] undef after using DW_IDX and friends 2017-07-03 21:49:34 +09:30
elfcpp_file.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
elfcpp_internal.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
elfcpp_swap.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
elfcpp.h gold: Add put_ch_reserved to 64-bit Chdr_write 2017-07-28 13:40:01 -07:00
i386.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
mips.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
powerpc.h [GOLD] PowerPC64 localentry:0 plt call optimization 2017-06-23 20:39:43 +09:30
README Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
s390.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
sparc.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
tilegx.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
x86_64.h Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30

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.