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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(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.

> buildsystems.

By default, GCC should be psABI compliant.  -Bsymbolic isn't psABI compliant
since the resulting shared library doesn't work with normal executable.  I
don't believe -fsymbolic should be the default, just like that -Bsymbolic
shouldn't be the default for linker either.

Reply via email to