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

--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #14)
> As it doesn't work with normal executables, I'm not convinced we need such
> an option or that it is right to assume it should work.

People are using -Bsymbolic for very good reasons and they know the risk.
In KDE, there are

#if !defined(QT_BOOTSTRAPPED) && defined(QT_REDUCE_RELOCATIONS) && 
defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
#  error "You must build your code with position independent code if Qt was 
built with -reduce-relocations. "\
         "Compile your code with -fPIC or -fPIE."
#endif

Unless we state -Bsymbolic should never be used with GCC, we should
provide a way to make PIE to compatible with -Bsymbolic.

Reply via email to