aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2021-02-25 05:41:35 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2021-02-25 05:41:35 +0000
commit19cd12a32afe801dc5e753013993e15e924ceb39 (patch)
tree4eb508959aea04596d0cad9af073dacecdb3a38c
parentddfffb41a22d4798a036fe2d30e59694ba7cdad3 (diff)
downloadsrc-19cd12a32afe801dc5e753013993e15e924ceb39.tar.gz
src-19cd12a32afe801dc5e753013993e15e924ceb39.zip
Disable PIE for MIPS BERI boot loader
MIPS BERI boot loader is built with -mno-abicalls and -fno-pic so prevent adding PIE-related build flags. Fix build after 9a227a2fd642 ("Enable PIE by default on 64-bit architectures") Obtained from: Semihalf Sponsored by: Stormshield
-rw-r--r--stand/mips/beri/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/stand/mips/beri/Makefile.inc b/stand/mips/beri/Makefile.inc
index 5a7b18e393c0..a95ca3dc1861 100644
--- a/stand/mips/beri/Makefile.inc
+++ b/stand/mips/beri/Makefile.inc
@@ -2,4 +2,8 @@
LDFLAGS+= -nostdlib
+# BERI boot loader is built with '-mno-abicalls' flag,
+# which is incompatible with PIE
+MK_PIE= no
+
.include "../Makefile.inc"