]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: aarch64: Enable all branch protection methods
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Jul 2023 13:27:19 +0000 (13:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Jul 2023 16:08:59 +0000 (16:08 +0000)
At this time, this will enable return address signing, and branch target
identification.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 1d357fb5a3d09f6fc88e6a63a9b6c59d930cf260..d41e6bd6bfb2998ab5a1c286633a4f17938d808c 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -152,7 +152,7 @@ configure_build() {
                        BUILDTARGET="${build_arch}-pc-linux-gnu"
                        CROSSTARGET="${build_arch}-cross-linux-gnu"
                        BUILD_PLATFORM="arm"
-                       CFLAGS_ARCH=""
+                       CFLAGS_ARCH="-mbranch-protection=standard"
                        ;;
 
                riscv64)