diff options
author | Marcin Wojtas <mw@FreeBSD.org> | 2021-02-25 05:41:35 +0000 |
---|---|---|
committer | Marcin Wojtas <mw@FreeBSD.org> | 2022-01-23 10:09:52 +0000 |
commit | f79791ab60497c18768a26b46d7798f324919423 (patch) | |
tree | c479369d878d6a87a444f9d73a33a182903d6f4c | |
parent | dee0854a009cde7dcdb16ba39754237737022c8a (diff) | |
download | src-f79791ab60497c18768a26b46d7798f324919423.tar.gz src-f79791ab60497c18768a26b46d7798f324919423.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
(cherry picked from commit 19cd12a32afe801dc5e753013993e15e924ceb39)
-rw-r--r-- | stand/mips/beri/Makefile.inc | 4 |
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" |