summaryrefslogtreecommitdiff
path: root/src/kernel/link.ld
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-24 00:16:05 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-24 00:16:05 -0500
commita947a7a143029ee8ef5cb4a4232d7439b8a79670 (patch)
tree69ee1c58837efee95091781b12456a09f820357c /src/kernel/link.ld
parente520b52cd58f70af9a17f330fe1ce98ce059762c (diff)
downloadportland-os-a947a7a143029ee8ef5cb4a4232d7439b8a79670.tar.gz
small changes, part 2, rewriting bootloader partially, giving up on this branch
Diffstat (limited to 'src/kernel/link.ld')
-rw-r--r--src/kernel/link.ld14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/kernel/link.ld b/src/kernel/link.ld
index 64dd0be..aeb8974 100644
--- a/src/kernel/link.ld
+++ b/src/kernel/link.ld
@@ -1,11 +1,13 @@
-OUTPUT_FORMAT(binary)
+MEMORY {
+ kload : ORIGIN = 0x01000000, LENGTH = 0x01000000
+}
+
SECTIONS {
. = 0x01000000;
.text : {
- main = .;
+ _start = .;
*(.text)
- }
- .rodata : { *(.rodata) }
- .data : { *(.data) }
- .bss : { *(.bss) }
+ } >kload
+ .rodata : { *(.rodata) } >kload
+ .data : { *(.data) *(.bss) } >kload
} \ No newline at end of file