Date: Sun, 30 Dec 2018 17:00:33 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 233707] www/firefox: fails to build with -fstack-protector-{strong,all} + -Wl,-z,nocopyreloc Message-ID: <bug-233707-29464-DqMmCOcMQO@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-233707-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-233707-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233707 --- Comment #14 from Tijl Coosemans <tijl@FreeBSD.org> --- (In reply to Shawn Webb from comment #13) -fPIE =3D=3D -fPIC + some optimisations that only apply to executables.=20 Executables can access their own global variables and functions directly.=20 Libraries cannot (unless the variable is declared with protected visibility) because a symbol with the same name can be defined in the executable or ano= ther 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 -fP= IE. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233707-29464-DqMmCOcMQO>