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

--- Comment #17 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #16)
> (In reply to H.J. Lu from comment #15)
> > Unless we state -Bsymbolic should never be used with GCC, we should
> > provide a way to make PIE to compatible with -Bsymbolic.
> 
> Well, there is a way, build with -fPIC rather than -fPIE.

Since -Bsymbolic is allowed with PIE, we should take advantage of it.
-fsymbolic -fPIE is the same as -fPIC and -fsymbolic -fPIC generates
much better codes for shared library.

Reply via email to