]> 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)
committerMarcin Wojtas <mw@FreeBSD.org>
Sun, 23 Jan 2022 10:09:53 +0000 (11:09 +0100)
commit5b042fcbdff8a651daecfbf91759fc8baf43ece0
treed8faaff2307f122812589a7e7fa415a522deff64
parentafd4a4940790c89c27cc4fac31814a4402f31444
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