https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65886

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Thiago Macieira from comment #7)
> (In reply to H.J. Lu from comment #4)
> > (In reply to Thiago Macieira from comment #3)
> > > Thanks H.J.!
> > > 
> > > Can I ask that -fsymbolic be the default? Otherwise, code with -fPIE MUST
> > > add -fsymbolic in GCC 5+, but can't add it prior because the option didn't
> > > exist. Please leave that for a release or two so that we can adapt
> > 
> > Linux kernel has things like
> > 
> > M16_CFLAGS   := $(call cc-option, -m16, $(CODE16GCC_CFLAGS))
> > 
> > It adds -m16 only if it exits. Why can't KDE do something like this?
> > There are many ways to achieve it and it works with all compilers.
> 
> We can. The problem is not the ability, it's the need to do it.

Now, you have a need :-).

> No buildsystem currently has support for -fsymbolic, since it doesn't exist
> yet. However, the lack of such option will produce subtle bugs. I'm asking
> for a grace period until the changes propagate.
> 

I don't think GCC default should cater shared libraries which
aren't psABI compliant.  It is the risk you take when using a
non-psABI compliant library.

Reply via email to