[Bug c/98634] gcc 4.8.5 - 9.3.0 on target x86_64, when compile a exe and linking with a so, and exe's source file extern a var, the final exe has the var with the same name with the one in the so file
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 12 11:29:20 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98634
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No RHEL or Fedora compilers are -pie by default, I hate when such important
details change silently under you.
Instead of changing the GCC default in these distros the rpm macros ensure PIE
by default when building rpm packages (unless one chooses to opt out).
More information about the Gcc-bugs
mailing list