From 139bb5c2a52332bd122ee7043b96d98bafa5b59b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 30 Jan 2024 17:32:50 +0200 Subject: [PATCH] Kernel: Fix linker script I have no idea why rodata was executable :D --- kernel/arch/x86_64/linker.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/x86_64/linker.ld b/kernel/arch/x86_64/linker.ld index 0f22dace43..29e1e781be 100644 --- a/kernel/arch/x86_64/linker.ld +++ b/kernel/arch/x86_64/linker.ld @@ -19,11 +19,11 @@ SECTIONS g_userspace_start = .; *(.userspace) g_userspace_end = .; + g_kernel_execute_end = .; } .rodata ALIGN(4K) : AT(ADDR(.rodata) - KERNEL_OFFSET) { *(.rodata.*) - g_kernel_execute_end = .; } .data ALIGN(4K) : AT(ADDR(.data) - KERNEL_OFFSET) {