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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233707 --- Comment #14 from Tijl Coosemans <tijl@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233707-29464-DqMmCOcMQO>
