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) {