From: Duje Mihanović Date: Tue, 28 Jun 2022 13:57:49 +0000 (+0200) Subject: kernel: Remove LMAs from linker script X-Git-Url: https://git.dujemihanovic.xyz/donate?a=commitdiff_plain;h=9603a4f4c7bfdf52bfbea6ead7b98e897a21f644;p=nameless-os.git kernel: Remove LMAs from linker script --- diff --git a/kernel/linker.ld b/kernel/linker.ld index 40870da..73fd822 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -5,13 +5,13 @@ SECTIONS . = 0xc0000000; __KERNEL_BASE__ = .; - .text : AT(ADDR(.text) - 0xbff00000) ALIGN(4K) { + .text : ALIGN(4K) { __TEXT_BASE__ = .; entry.o (.text) *(.text) __TEXT_END__ = .; } - .rodata : AT(ADDR(.rodata) - 0xbff00000) ALIGN(4K) { + .rodata : ALIGN(4K) { __RODATA_BASE__ = .; *(.rodata) __RODATA_END__ = .; @@ -26,12 +26,12 @@ SECTIONS * matter yet because we (currently) assume that the NX bit is not * supported anyway. */ - .data : AT(ADDR(.data) - 0xbff00000) ALIGN(4K) { + .data : ALIGN(4K) { __DATA_BASE__ = .; *(.data) __DATA_END__ = .; } - .bss : AT(ADDR(.bss) - 0xbff00000) ALIGN(4K) { + .bss : ALIGN(4K) { __BSS_BASE__ = .; *(.bss) /* Reserving 16KiB for the stack. A __STACK_TOP__ is not really