HEADS-UP: PIE enabled by default on main
David Wolfskill
david at catwhisker.org
Fri Feb 26 12:25:32 UTC 2021
On Thu, Feb 25, 2021 at 09:22:43PM -0500, Ed Maste wrote:
> On Thu, 25 Feb 2021 at 19:23, John Kennedy <warlock at 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
> ....
FWIW, my source update from:
FreeBSD freebeast.catwhisker.org 14.0-CURRENT FreeBSD 14.0-CURRENT #1194 main-n245061-c861373bdff9: Thu Feb 25 04:09:17 PST 2021 root at freebeast.catwhisker.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 main-n245107-172f2fc11cc5: Fri Feb 26 04:01:22 PST 2021 root at freebeast.catwhisker.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
--
David H. Wolfskill david at catwhisker.org
It is supremely disingenuous to claim a lack of jurisdiction, then
proceed to participate in a decision on the same matter.
See https://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210226/6fc7614b/attachment.sig>
More information about the freebsd-current
mailing list