diff options
author | Marvin Borner | 2020-05-31 20:26:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 20:26:40 +0200 |
commit | eaadde5453e33af6826bb03488991aab0297d3dd (patch) | |
tree | f52d06c0841b664abcab547481dca41f4cfb30ff /src/kernel/linker.ld | |
parent | 45a5ecc72d8e700614a0751f0e7ec68199885b77 (diff) |
OMG
Diffstat (limited to 'src/kernel/linker.ld')
-rw-r--r-- | src/kernel/linker.ld | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld index b7bde1d..a55b13f 100644 --- a/src/kernel/linker.ld +++ b/src/kernel/linker.ld @@ -1,32 +1,28 @@ ENTRY(boot) -phys = 0x100000; -offset = 0xC0000000; -virt = offset + phys; - SECTIONS { - . = virt; + . = 1M; - .text : AT (ADDR (.text) - offset) + .text BLOCK(4K) : ALIGN(4K) { + text_start = .; *(.text) *(.rodata) - . = ALIGN(0x1000); } - .data : AT (ADDR (.data) - offset) + .data BLOCK(4K) : ALIGN(4K) { + data_start = .; *(.data) - . = ALIGN(0x1000); } - .bss : AT (ADDR (.bss) - offset) + .bss BLOCK(4K) : ALIGN(4K) { + bss_start = .; *(.COMMON) *(.bss) - . = ALIGN(0x1000); } - KERNEL_END = .; + kernel_end = .; }
\ No newline at end of file |