From 38ad80c9e06f8b906b6d6d27d529eb0a848d666f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Duje=20Mihanovi=C4=87?= Date: Sat, 18 Jun 2022 13:33:40 +0200 Subject: [PATCH] Fix LMAs in kernel linker script --- kernel/linker.ld | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/linker.ld b/kernel/linker.ld index 1a0107f..a730075 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -6,13 +6,13 @@ SECTIONS . = 0xc0000000; __KERNEL_BASE__ = .; - .text : AT(ADDR(.text) - 0xbf000000) ALIGN(4K) { + .text : AT(ADDR(.text) - 0xbff00000) ALIGN(4K) { __TEXT_BASE__ = .; kernel/entry.o (.text) *(.text) __TEXT_END__ = .; } - .rodata : AT(ADDR(.rodata) - 0xbf000000) ALIGN(4K) { + .rodata : AT(ADDR(.rodata) - 0xbff00000) ALIGN(4K) { __RODATA_BASE__ = .; *(.rodata) __RODATA_END__ = .; @@ -27,12 +27,12 @@ SECTIONS * matter yet because we (currently) assume that the NX bit is not * supported anyway. */ - .data : AT(ADDR(.data) - 0xbf000000) ALIGN(4K) { + .data : AT(ADDR(.data) - 0xbff00000) ALIGN(4K) { __DATA_BASE__ = .; *(.data) __DATA_END__ = .; } - .bss : AT(ADDR(.bss) - 0xbf000000) ALIGN(4K) { + .bss : AT(ADDR(.bss) - 0xbff00000) ALIGN(4K) { __BSS_BASE__ = .; *(.bss) /* Reserving 16KiB for the stack. A __STACK_TOP__ is not really -- 2.39.2