https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81968
--- Comment #50 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #49 from rguenther at suse dot de <rguenther at suse dot de> --- > On Tue, 9 Jan 2018, ro at CeBiTec dot Uni-Bielefeld.DE wrote: >> Indeed. I've just attached an updated patch that does just that. >> >> * I needed to change the signature of handle_lto_debug_sections to >> realloc the new section name: while before we could just skip over the >> initial .gnu.debuglto_ resp. .gnu.lto_.debug_ part, to map from >> .rel.gnu.debuglto_ (or .rela and variants), it neets to copy parts of >> the name. > > IIRC naming of the reloc sections is irrelevant? I'll see what you > needed to do. It should be (and Solaris ld certainly only looks at section types etc.). However, much of gld linker maps revolves around section name patterns... Rainer