Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2022 10:25:40 GMT
From:      Marcin Wojtas <mw@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f79791ab6049 - stable/13 - Disable PIE for MIPS BERI boot loader
Message-ID:  <202201231025.20NAPe6g088303@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mw:

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

commit f79791ab60497c18768a26b46d7798f324919423
Author:     Marcin Wojtas <mw@FreeBSD.org>
AuthorDate: 2021-02-25 05:41:35 +0000
Commit:     Marcin Wojtas <mw@FreeBSD.org>
CommitDate: 2022-01-23 10:09:52 +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
    
    (cherry picked from commit 19cd12a32afe801dc5e753013993e15e924ceb39)
---
 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201231025.20NAPe6g088303>