From owner-freebsd-current@freebsd.org Fri Feb 26 03:41:48 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F1B1D553AD0 for ; Fri, 26 Feb 2021 03:41:48 +0000 (UTC) (envelope-from grog@lemis.com) Received: from lax.lemis.com (www.lemis.com [45.32.70.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4DmwSX5hpyz4grs; Fri, 26 Feb 2021 03:41:48 +0000 (UTC) (envelope-from grog@lemis.com) Received: from eureka.lemis.com (unknown [121.200.11.253]) by lax.lemis.com (Postfix) with ESMTP id 0E44427F7C; Fri, 26 Feb 2021 03:41:47 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id 427A72635BE; Fri, 26 Feb 2021 14:41:46 +1100 (AEDT) Date: Fri, 26 Feb 2021 14:41:46 +1100 From: Greg 'groggy' Lehey To: Ed Maste Cc: John Kennedy , FreeBSD Current Subject: Re: HEADS-UP: PIE enabled by default on main Message-ID: <20210226034146.GC69550@eureka.lemis.com> References: <20210225231028.GB69550@eureka.lemis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5QAgd0e35j3NYeGe" Content-Disposition: inline In-Reply-To: Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: http://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) X-Rspamd-Queue-Id: 4DmwSX5hpyz4grs X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 03:41:49 -0000 --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 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--