This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/81968] [8 regression] early lto debug objects make Solaris ld SEGV
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Jan 2018 10:53:54 +0000
- Subject: [Bug lto/81968] [8 regression] early lto debug objects make Solaris ld SEGV
- Auto-submitted: auto-generated
- References: <bug-81968-4@http.gcc.gnu.org/bugzilla/>
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