Date: Fri, 26 Feb 2021 14:41:46 +1100 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Ed Maste <emaste@freebsd.org> Cc: John Kennedy <warlock@phouka.net>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: HEADS-UP: PIE enabled by default on main Message-ID: <20210226034146.GC69550@eureka.lemis.com> In-Reply-To: <CAPyFy2BaXoO0tVd2auHKFKZ17suTDAVzpvGdESaeu4GUFvdJ7Q@mail.gmail.com> References: <CAPyFy2CyxG=Bj8T22ixW3=E3dv6mPoZRwJ_VSN%2BTwky95rUYYw@mail.gmail.com> <20210225231028.GB69550@eureka.lemis.com> <YDg/JkvXdCXNa1Hk@phouka1.phouka.net> <CAPyFy2BaXoO0tVd2auHKFKZ17suTDAVzpvGdESaeu4GUFvdJ7Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 25 February 2021 at 21:22:43 -0500, Ed Maste wrote: > On Thu, 25 Feb 2021 at 19:23, John Kennedy <warlock@phouka.net> wrote: >> >> Not sure if Ed Maste just wants to make sure that all the executables >> are rebuilt as PIE (vs hit-and-miss) or there is a sneaker corner-case that >> he knows about. > > The issue is that without a clean build you may have some .o files > left around that are built without PIE enabled (i.e., compiled without > -fPIE), and attempting to link them into a PIE executable will fail > with an error like: > > ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output Ah, thanks. That makes more sense. Greg -- Sent from my desktop computer. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA --5QAgd0e35j3NYeGe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAmA4bfoACgkQIubykFB6QiNgOQCeP38rdC2kS2Q/UFEy+vvQ5uiL lDoAnR+8pA2fBvrFFM1CcOLa64PzTwAa =h02k -----END PGP SIGNATURE----- --5QAgd0e35j3NYeGe--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210226034146.GC69550>