This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR83452
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, dave dot anglin at bell dot net, amodra at gmail dot com
- Date: Wed, 20 Dec 2017 12:00:56 +0100
- Subject: Re: [PATCH] Fix PR83452
- Authentication-results: sourceware.org; auth=none
- References: <alpine.LSU.2.20.1712191530500.12252@zhemvz.fhfr.qr>
Hi Richard,
> The following enables a hpux specific workaround for the WEAK UNDEF
> symbols used by LTO debuginfo extraction. It makes sure to use
> a special name (gnu_lto_v1) for those.
>
> It also adjusts removed local symbols to not use UNDEFs (similar
> to solaris ld for globals hpux doesn't like undefs it cannot resolve even
> if they are unused). Instead it uses DEFS with NULL name.
>
> I also fixed some readelf complaints about stale sh_info/link in
> removed sections. (maybe that fixes the solaris complaints? ... just
> having some christmas wishes ;))
unfortunately, Santa doesn't grant all our wishes ;-)
> LTO Bootstrapped and tested on x86_64-unknown-linux-gnu.
>
> I've tested GNU ld and gold for a simple testcase exercising multiple
> WEAK UNDEFs with the same name and local defs, they seem happy
> (but they also retain all those local defs now in the partial link ... :/)
>
> I'll probably see to implement "real" section removal in stage3 to
> fix the Solaris complaints but I hope to not need reloc section
> rewriting (aka really pruning stuff from the symtab).
I've tested all of unmodified mainline, trunk + current pr81968 patch,
and trunk + this one last night on i386-pc-solaris2.11 and
sparc-sun-solaris2.11. There's no difference between results with and
without this patch, while the pr81968 (which I've been keeping in my
tree for quite some time) does help quite a bit, but several errors
remain.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University