[Bug 233707] www/firefox: fails to build with -fstack-protector-{strong,all} + -Wl,-z,nocopyreloc
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 30 17:00:35 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233707
--- Comment #14 from Tijl Coosemans <tijl at FreeBSD.org> ---
(In reply to Shawn Webb from comment #13)
-fPIE == -fPIC + some optimisations that only apply to executables.
Executables can access their own global variables and functions directly.
Libraries cannot (unless the variable is declared with protected visibility)
because a symbol with the same name can be defined in the executable or another
library and the symbol can be resolved to that one. So you can compile
executables with -fPIC but you should not compile shared libraries with -fPIE.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list