diff options
author | Marvin Borner | 2019-09-29 20:09:56 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-29 20:09:56 +0200 |
commit | 2fb0965a68dd232a70d1616bfbd7281fc65c2b0a (patch) | |
tree | 15c16851251ef1b083deff5796a36d6c127d0035 /src/kernel/linker.ld | |
parent | 0936f4d7b781ca8342fa80037d836306913aa282 (diff) |
Added some minor improvements
Diffstat (limited to 'src/kernel/linker.ld')
-rw-r--r-- | src/kernel/linker.ld | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld index 2f74866..2abbaeb 100644 --- a/src/kernel/linker.ld +++ b/src/kernel/linker.ld @@ -1,25 +1,27 @@ -OUTPUT_FORMAT("binary") ENTRY(start) -phys = 0x00100000; SECTIONS { - .text phys : AT(phys) { - code = .; - *(.text) - *(.rodata*) - . = ALIGN(4096); - } - .data : AT(phys + (data - code)) - { - data = .; - *(.data) - . = ALIGN(4096); - } - .bss : AT(phys + (bss - code)) - { - bss = .; - *(.bss) - . = ALIGN(4096); - } - end = .; -}
\ No newline at end of file + .text 0x100000 : + { + code = .; _code = .; __code = .; + *(.text) + . = ALIGN(4096); + } + + .data : + { + data = .; _data = .; __data = .; + *(.data) + *(.rodata) + . = ALIGN(4096); + } + + .bss : + { + bss = .; _bss = .; __bss = .; + *(.bss) + . = ALIGN(4096); + } + + end = .; _end = .; __end = .; +} |