]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Disable PIE for powerpc bootloaders.
authorMarcin Wojtas <mw@FreeBSD.org>
Tue, 23 Feb 2021 12:42:26 +0000 (13:42 +0100)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 08:14:33 +0000 (03:14 -0500)
commit9da7cdecf101ef70b30364479c35a9d25b47b576
tree068e8da85631a868b22fcd89dece6fb4b3e623b1
parent3e7c2c8a913b722aca9e0a05ea79d15dbc344116
Disable PIE for powerpc bootloaders.

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.

Submitted by: Dawid Gorecki <dgr@semihalf.com>
Reviewed by: emaste
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D28893

(cherry picked from commit 3aa023643e9db78f4da314ff9bfb1643533c004f)
stand/powerpc/boot1.chrp/Makefile
stand/powerpc/kboot/Makefile
stand/powerpc/ofw/Makefile
stand/powerpc/uboot/Makefile