summarylogtreecommitdiffstats
path: root/0002-Add-IBT-support.patch
blob: 7bcea8d1d57371ebee5bde4fb05aec6503cacbd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Peter Jung <admin@ptr1337.dev>
Date: Fri, 18 Oct 2024 22:40:58 +0200
Subject: [PATCH] Add IBT support

Signed-off-by: Peter Jung <admin@ptr1337.dev>
---
 src/nvidia-modeset/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/nvidia-modeset/Makefile b/src/nvidia-modeset/Makefile
index c6745082d5f8..eaa071f25d00 100644
--- a/src/nvidia-modeset/Makefile
+++ b/src/nvidia-modeset/Makefile
@@ -155,6 +155,7 @@ ifeq ($(TARGET_ARCH),x86_64)
   CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -fno-jump-tables)
   CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch=thunk-extern)
   CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch-register)
+  CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mharden-sls=all)
 endif
 
 CFLAGS += $(CONDITIONAL_CFLAGS)