From a32ba94b9fea41493bfbbb17e5fd8d60929258b8 Mon Sep 17 00:00:00 2001 From: quackerd Date: Sat, 18 Nov 2023 00:11:02 +0800 Subject: [PATCH] linker script LMA fix --- sys/arm64/kernel.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/kernel.lds b/sys/arm64/kernel.lds index 7bf53ed..d2064a0 100644 --- a/sys/arm64/kernel.lds +++ b/sys/arm64/kernel.lds @@ -10,7 +10,7 @@ SECTIONS PROVIDE (__executable_start = SEGMENT_START("text-segment", 0xFFFF800000400000)); . = SEGMENT_START("text-segment", 0xFFFF800000400000) + SIZEOF_HEADERS; - .text : + .text : AT(SEGMENT_START("text-segment", 0xFFFF800000400000) + SIZEOF_HEADERS - 0xFFFF800000000000) { *(.text .stub .text.* .gnu.linkonce.t.*) *(.text.unlikely .text.*_unlikely .text.unlikely.*)