2018-01-11 Richard Biener <rguenther@suse.de>
commit04aaa94de121690ad28ff31473bb55142df70f39
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Jan 2018 12:12:39 +0000 (11 12:12 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Jan 2018 12:12:39 +0000 (11 12:12 +0000)
treed2f8fb5d40dada424665515fdd18680f7e9087d6
parent5ecb0df9082585b1234f36bd8ed4a00731340b8b
2018-01-11  Richard Biener  <rguenther@suse.de>
Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR lto/81968
libiberty/
* simple-object-common.h (struct simple_object_functions):
Change copy_lto_debug_sections callback signature.
* simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
SHF_INFO_LINK): Add defines.
(simple_object_elf_copy_lto_debug_sections): Instead of
leaving not to be copied sections empty unnamed SHT_NULL
remove them from the target section headers and adjust section
reference everywhere.  Handle SHN_XINDEX in the symbol table
processing properly.
* simple-object.c (handle_lto_debug_sections): Change
interface to return a modified string and handle renaming
of relocation sections.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256528 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/simple-object-common.h
libiberty/simple-object-elf.c
libiberty/simple-object.c