From owner-freebsd-current@freebsd.org Fri Feb 26 12:25:32 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 CC83B5601C2 for ; Fri, 26 Feb 2021 12:25:32 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dn84r4WXlz3kd9 for ; Fri, 26 Feb 2021 12:25:32 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9B07156017A; Fri, 26 Feb 2021 12:25:32 +0000 (UTC) Delivered-To: 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 9ACBA5602B3 for ; Fri, 26 Feb 2021 12:25:32 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dn84q4CXDz3kft for ; Fri, 26 Feb 2021 12:25:31 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 11QCPNLe073734 for ; Fri, 26 Feb 2021 12:25:23 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 11QCPNCq073733 for current@freebsd.org; Fri, 26 Feb 2021 04:25:23 -0800 (PST) (envelope-from david) Date: Fri, 26 Feb 2021 04:25:23 -0800 From: David Wolfskill To: current@freebsd.org Subject: Re: HEADS-UP: PIE enabled by default on main Message-ID: Reply-To: current@freebsd.org Mail-Followup-To: current@freebsd.org References: <20210225231028.GB69550@eureka.lemis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vQEFuVmhge+AWB29" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Dn84q4CXDz3kft X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [-0.40 / 15.00]; HAS_REPLYTO(0.00)[current@freebsd.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[107.204.234.170:from]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[107.204.234.170:from:127.0.2.255]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[catwhisker.org]; ARC_NA(0.00)[]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; MAILMAN_DEST(0.00)[current]; REPLYTO_EQ_TO_ADDR(5.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 12:25:32 -0000 --vQEFuVmhge+AWB29 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 25, 2021 at 09:22:43PM -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. >=20 > 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: >=20 > 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 > .... FWIW, my source update from: FreeBSD freebeast.catwhisker.org 14.0-CURRENT FreeBSD 14.0-CURRENT #1194 ma= in-n245061-c861373bdff9: Thu Feb 25 04:09:17 PST 2021 root@freebeast.ca= twhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1400005 = 1400005 to: FreeBSD freebeast.catwhisker.org 14.0-CURRENT FreeBSD 14.0-CURRENT #1195 ma= in-n245107-172f2fc11cc5: Fri Feb 26 04:01:22 PST 2021 root@freebeast.ca= twhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC amd64 1400005 = 1400005 this morning was quite uneventful. I did nothing special -- just the normal META_MODE build I always do. Rebooted; started X11 (built under stable/12, as with all of the ports save x11/nvidia-driver)... things Just Worked. :-) (Above was from one machine; I actually updated 3 machines in parallel.) Peace, david --=20 David H. Wolfskill david@catwhisker.org It is supremely disingenuous to claim a lack of jurisdiction, then =20 proceed to participate in a decision on the same matter. See https://www.catwhisker.org/~david/publickey.gpg for my public key. --vQEFuVmhge+AWB29 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAmA46LNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 Pcl7CQf9Ethjg8vu5LLwFj8xekr7WkiDbMvznY37iiodNTwqOcAc1taBCL71xayI 0f3oH/BTwN+DH8fcFgVQKcjkE9R9qZn+epWzn7dwRWXF7bRaLRwtEMF8qkRQdoaC j7fVFGgWpU+yue6GxdBFBocDBvByzTcHUS2AbDc61f7V3Um8Ssy6THz1kfnA++Pe r9AJ2sBJym+l9gKeaEBUdutmdG9B4l4IzybWGB9nLdSNi2bj5rx7wz6wRr7muEfK ENFx55Y40dcPkhvyPdFjUUqEvj0YOssEDYoTnxHpwPUco/MzhSHVgZ7RfJ035uJD d9WcTWefYkDQ48lHun2hEGpKNf4mag== =jsnB -----END PGP SIGNATURE----- --vQEFuVmhge+AWB29--