On Tue, Oct 24, 2017 at 11:48:27AM +0200, Richard Biener wrote:
> On Tue, 24 Oct 2017, Alan Modra wrote:
> > The problem with making discarded symbols hidden is that the
> > non-default visibility is sticky.  When symbols other than the
> > __gnu_lto ones are discarded that turns out to be a bad idea.
> 
> So a UNDEF weak hidden causes a later non-weak defined default
> visibility symbol to become hidden?  The wonders of ELF ...

Yes..

> > Bootstrapped and regression tested powerpc64le-linux.  OK?
> 
> Ok.

Committed r254042.  Let's hope this works.  Rewriting the symbol
table, which of course is the right thing to do rather than these
hacks, is a pain.  Relocations would need r_info updates, and so would
group signatures.

-- 
Alan Modra
Australia Development Lab, IBM

Reply via email to