The branch main has been updated by mw:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=19cd12a32afe801dc5e753013993e15e924ceb39

commit 19cd12a32afe801dc5e753013993e15e924ceb39
Author:     Marcin Wojtas <[email protected]>
AuthorDate: 2021-02-25 05:41:35 +0000
Commit:     Marcin Wojtas <[email protected]>
CommitDate: 2021-02-25 05:41:35 +0000

    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
---
 stand/mips/beri/Makefile.inc | 4 ++++
 1 file changed, 4 insertions(+)

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"
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to