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.*)