HEADS-UP: PIE enabled by default on main

Dimitry Andric dim at FreeBSD.org
Fri Feb 26 09:16:47 UTC 2021


On 26 Feb 2021, at 03:22, Ed Maste <emaste at freebsd.org> 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

Hmm, maybe it is time for a ".pieo" extension? (I disliked .pico at
first, but now I see the sense in it; might as well make clear that
plain ".o" is meant for 'static' object files.)

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210226/3548c29a/attachment.sig>


More information about the freebsd-current mailing list