X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=blobdiff_plain;f=kernel%2Flinker.ld;h=1a0107f226754fbc6597d075c5681746b1c94d9f;hb=e643590fbf5d867cc6f7fb597718a980aa8f72b4;hp=82f6e4af44dc08723874e8fbe5e6983ec161c6a4;hpb=e07e8457b21a82799a8c1931de13718371898675;p=nameless-os.git diff --git a/kernel/linker.ld b/kernel/linker.ld index 82f6e4a..1a0107f 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -3,16 +3,16 @@ OUTPUT_FORMAT(binary) SECTIONS { - . = 0x100000; + . = 0xc0000000; __KERNEL_BASE__ = .; - .text : ALIGN(4K) { + .text : AT(ADDR(.text) - 0xbf000000) ALIGN(4K) { __TEXT_BASE__ = .; kernel/entry.o (.text) *(.text) __TEXT_END__ = .; } - .rodata : ALIGN(4K) { + .rodata : AT(ADDR(.rodata) - 0xbf000000) 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 : ALIGN(4K) { + .data : AT(ADDR(.data) - 0xbf000000) ALIGN(4K) { __DATA_BASE__ = .; *(.data) __DATA_END__ = .; } - .bss : ALIGN(4K) { + .bss : AT(ADDR(.bss) - 0xbf000000) ALIGN(4K) { __BSS_BASE__ = .; *(.bss) /* Reserving 16KiB for the stack. A __STACK_TOP__ is not really