Re: [PATCH] Fix PR83452

2018-01-02 Thread Richard Biener
On Wed, 20 Dec 2017, Alan Modra wrote: > On Tue, Dec 19, 2017 at 03:37:10PM +0100, Richard Biener wrote: > > + while ((gnu_lto = memchr (gnu_lto, 'g', > > + strings + strsz - gnu_lto))) > > + if (strncmp (gnu_lto, "gnu_lto_v1", > > +

Re: [PATCH] Fix PR83452

2017-12-20 Thread Rainer Orth
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

Re: [PATCH] Fix PR83452

2017-12-19 Thread Alan Modra
On Tue, Dec 19, 2017 at 03:37:10PM +0100, Richard Biener wrote: > + while ((gnu_lto = memchr (gnu_lto, 'g', > + strings + strsz - gnu_lto))) > + if (strncmp (gnu_lto, "gnu_lto_v1", > + strings + strsz - gnu_lto) == 0

[PATCH] Fix PR83452

2017-12-19 Thread Richard Biener
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