summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-11-01 16:15:59 +0000
committerLaurent Bercot <ska@appnovation.com>2023-11-01 16:15:59 +0000
commit0492a514b38181a79ad824b8ccafa79984cc1631 (patch)
treec3718cb9008ff7f8a7a0208245d012b9645614f2
parent4de0bed66ac9fc4400ac61cd2154be2a002dd719 (diff)
downloadlh-bootstrap-0492a514b38181a79ad824b8ccafa79984cc1631.tar.xz
Tentative noobjtool fix for kernel 6.6
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--sub/kernel/Makefile2
-rw-r--r--sub/kernel/noobjtool.patch28
2 files changed, 25 insertions, 5 deletions
diff --git a/sub/kernel/Makefile b/sub/kernel/Makefile
index 1345d3d..ef80fbe 100644
--- a/sub/kernel/Makefile
+++ b/sub/kernel/Makefile
@@ -1,6 +1,6 @@
include sub/kernel/Makefile.ncurses
-KERNEL_VERSION ?= 6.3.5
+KERNEL_VERSION ?= 6.6
KERNEL_MAJOR := $(firstword $(subst ., ,$(KERNEL_VERSION)))
KERNEL_FULLVERSION := $(if $(word 2,$(subst ., ,$(KERNEL_VERSION))),$(KERNEL_VERSION),$(KERNEL_VERSION).0)
diff --git a/sub/kernel/noobjtool.patch b/sub/kernel/noobjtool.patch
index fb28ccc..13631ec 100644
--- a/sub/kernel/noobjtool.patch
+++ b/sub/kernel/noobjtool.patch
@@ -1,7 +1,7 @@
-diff -rNU3 linux-6.1.11.old/arch/x86/Kconfig linux-6.1.11/arch/x86/Kconfig
---- linux-6.1.11.old/arch/x86/Kconfig 2023-02-09 11:28:28.000000000 +0100
-+++ linux-6.1.11/arch/x86/Kconfig 2023-02-10 02:23:18.520145732 +0100
-@@ -240,7 +240,7 @@
+diff -rNU3 linux-6.6.old/arch/x86/Kconfig linux-6.6/arch/x86/Kconfig
+--- linux-6.6.old/arch/x86/Kconfig 2023-10-30 03:31:08.000000000 +0100
++++ linux-6.6/arch/x86/Kconfig 2023-11-01 17:12:13.679989615 +0100
+@@ -249,7 +249,7 @@
select HAVE_NOINSTR_HACK if HAVE_OBJTOOL
select HAVE_NMI
select HAVE_NOINSTR_VALIDATION if HAVE_OBJTOOL
@@ -10,3 +10,23 @@ diff -rNU3 linux-6.1.11.old/arch/x86/Kconfig linux-6.1.11/arch/x86/Kconfig
select HAVE_OPTPROBES
select HAVE_PCSPKR_PLATFORM
select HAVE_PERF_EVENTS
+diff -rNU3 linux-6.6.old/include/linux/objtool.h linux-6.6/include/linux/objtool.h
+--- linux-6.6.old/include/linux/objtool.h 2023-10-30 03:31:08.000000000 +0100
++++ linux-6.6/include/linux/objtool.h 2023-11-01 17:11:49.759989695 +0100
+@@ -156,6 +156,7 @@
+ #define STACK_FRAME_NON_STANDARD_FP(func)
+ #define ANNOTATE_NOENDBR
+ #define ASM_REACHABLE
++#define VALIDATE_UNRET_BEGIN
+ #else
+ #define ANNOTATE_INTRA_FUNCTION_CALL
+ .macro UNWIND_HINT type:req sp_reg=0 sp_offset=0 signal=0
+@@ -166,6 +167,8 @@
+ .endm
+ .macro REACHABLE
+ .endm
++.macro VALIDATE_UNRET_BEGIN
++.endm
+ #endif
+
+ #endif /* CONFIG_OBJTOOL */