From fb1c180c431e3ac07ca56f53299edea316883842 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 29 Dec 2025 14:43:20 +0100 Subject: x86_64/boot: fix section assignments in ld script --- arch/x86_64/src/boot/entry64.s | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'arch/x86_64/src/boot/entry64.s') diff --git a/arch/x86_64/src/boot/entry64.s b/arch/x86_64/src/boot/entry64.s index 657b0a8..29fb778 100644 --- a/arch/x86_64/src/boot/entry64.s +++ b/arch/x86_64/src/boot/entry64.s @@ -1,3 +1,11 @@ +.section .stack, "aw", @nobits + +.align 16 +.global stack_top +stack_bottom: .skip 1 << 20 +stack_top: +stack_size = stack_top - stack_bottom + .section .bss, "aw", @nobits //! A structure containing information gathered during the bootstrap process. @@ -11,12 +19,6 @@ .global bootstrap_information bootstrap_information: .skip 16 -.align 16 -.global stack_top -stack_bottom: .skip 1 << 20 -stack_top: -stack_size = stack_top - stack_bottom - .section .boot_text, "ax", @progbits .code64 -- cgit v1.2.3