Page MenuHomeFreeBSD

Disable PIE for PowerPC bootloaders.
ClosedPublic

Authored by dgr_semihalf.com on Feb 23 2021, 2:13 PM.
Referenced Files
F95988340: D28893.diff
Mon, Sep 23, 6:25 AM
F95905882: D28893.id84634.diff
Mon, Sep 23, 12:07 AM
Unknown Object (File)
Sun, Sep 22, 5:27 AM
Unknown Object (File)
Sun, Sep 22, 2:58 AM
Unknown Object (File)
Sat, Sep 21, 5:24 AM
Unknown Object (File)
Sat, Sep 21, 5:04 AM
Unknown Object (File)
Tue, Sep 17, 8:52 PM
Unknown Object (File)
Tue, Sep 17, 2:40 PM

Details

Summary

Bootloaders for powerpc are not built as position independent
code. Since bsd.prog.mk is used for building, when PIE is enabled,
the PIE flags are added and that causes the build to fail.
Adding MK_PIE=no stops bsd.prog.mk from adding PIE specific flags.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

stand/powerpc/boot1.chrp/Makefile
46

IMO a comment is warranted if there's something specific we can point out (such as the -mno-abicalls issue with MIPS) but otherwise it's not needed, MK_PIE=no is sufficiently self-explanatory.

LGTM. I think the comments are unnecessary though.

This revision is now accepted and ready to land.Feb 24 2021, 6:52 PM
This revision was automatically updated to reflect the committed changes.