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=73fd822e18f1981778f897955a3ff9f149b00504;hb=9603a4f4c7bfdf52bfbea6ead7b98e897a21f644;hp=40870daa95a4735bf524150ef7df90ce41250bf0;hpb=d90a72853a84da09c139592fe04dd440291dbf9f;p=nameless-os.git 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