Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2021 04:25:23 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   Re: HEADS-UP: PIE enabled by default on main
Message-ID:  <YDjoswwUizEmpIrL@albert.catwhisker.org>
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

--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 <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.
>=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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YDjoswwUizEmpIrL>