git: ea2392f2f2b3 - stable/12 - Disable PIE for MIPS ubldr

From: Kyle Evans <>
Date: Fri, 08 Oct 2021 16:09:12 UTC
The branch stable/12 has been updated by kevans:


commit ea2392f2f2b3bfa1883f921c465f9b22eec8f512
Author:     Marcin Wojtas <>
AuthorDate: 2021-02-12 15:41:49 +0000
Commit:     Kyle Evans <>
CommitDate: 2021-10-08 08:14:35 +0000

    Disable PIE for MIPS ubldr
    When performing buildworld for MIPS with PIE enabled, the build fails
    with "position-independent code requires '-mabicalls'" message.
    -mno-abicalls and -fno-pic flags are explicitly set in MIPS ubldr
    makefile, so to work around this problem, set MK_PIE=no for MIPS
    Submitted by: Dawid Gorecki <>
    Reviewed by: emaste
    Obtained from: Semihalf
    Sponsored by: Stormshield
    Differential Revision:
    (cherry picked from commit cd992885bcdfb3c2c6b761f5c3bf1c86949acdc3)
 stand/mips/uboot/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/stand/mips/uboot/Makefile b/stand/mips/uboot/Makefile
index 1751bcb80d54..6fb2532f7bb1 100644
--- a/stand/mips/uboot/Makefile
+++ b/stand/mips/uboot/Makefile
 OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
+# ubldr on MIPS is built with '-mno-abicalls' flag,
+# which is incompatible with PIE
+MK_PIE=		no