diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-29 14:43:20 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-29 14:43:20 +0100 |
| commit | fb1c180c431e3ac07ca56f53299edea316883842 (patch) | |
| tree | 60344689657d6c9512c697e3ac714709cc3c958c /arch/x86_64/src/boot/entry64.s | |
| parent | c522a3634e0cd20804b1e3216caedd5e15cbee19 (diff) | |
| download | teachos-fb1c180c431e3ac07ca56f53299edea316883842.tar.xz teachos-fb1c180c431e3ac07ca56f53299edea316883842.zip | |
x86_64/boot: fix section assignments in ld script
Diffstat (limited to 'arch/x86_64/src/boot/entry64.s')
| -rw-r--r-- | arch/x86_64/src/boot/entry64.s | 14 |
1 files changed, 8 insertions, 6 deletions
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 |
