summaryrefslogtreecommitdiff
path: root/Source/Kernel/Link.ld
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-08-21 23:59:19 +0200
committerAlexis211 <alexis211@gmail.com>2009-08-21 23:59:19 +0200
commit74e721676ddd5d996ccf2e1d35da57320f658609 (patch)
treeb39d766c8e27a654c89c2435131e5eaf193125d8 /Source/Kernel/Link.ld
parentae803baa4e0ec584c7afd3f6d55f2e6b32010b46 (diff)
downloadMelon-74e721676ddd5d996ccf2e1d35da57320f658609.tar.gz
Melon-74e721676ddd5d996ccf2e1d35da57320f658609.zip
Kernel now loads in higher half, and uses a VT for output.
Diffstat (limited to 'Source/Kernel/Link.ld')
-rw-r--r--Source/Kernel/Link.ld14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/Kernel/Link.ld b/Source/Kernel/Link.ld
index bcd0b90..dd6add0 100644
--- a/Source/Kernel/Link.ld
+++ b/Source/Kernel/Link.ld
@@ -3,15 +3,21 @@ ENTRY (loader)
SECTIONS{
. = 0x00100000;
- .text :{
+ .setup : {
+ *(.setup)
+ }
+
+ . += 0xC0000000;
+
+ .text : AT(ADDR(.text) - 0xC0000000) {
*(.text)
}
- .rodata ALIGN (0x1000) : {
+ .rodata ALIGN (0x1000) : AT(ADDR(.rodata) - 0xC0000000) {
*(.rodata)
}
- .data ALIGN (0x1000) : {
+ .data ALIGN (0x1000) : AT(ADDR(.data) - 0xC0000000) {
start_ctors = .;
*(.ctor*)
end_ctors = .;
@@ -21,7 +27,7 @@ SECTIONS{
*(.data)
}
- .bss : {
+ .bss : AT(ADDR(.bss) - 0xC0000000) {
sbss = .;
*(COMMON)
*(.bss)