summaryrefslogtreecommitdiff
path: root/src/kernel/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/link.ld')
-rw-r--r--src/kernel/link.ld12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/kernel/link.ld b/src/kernel/link.ld
index 1ce17cf..fcdb0bb 100644
--- a/src/kernel/link.ld
+++ b/src/kernel/link.ld
@@ -1,27 +1,29 @@
ENTRY (loader)
SECTIONS{
+ k_highhalf_addr = 0xC0000000;
+
. = 0x00100000;
.setup : {
*(.setup)
}
- . += 0xE0000000;
+ . += k_highhalf_addr;
- .text : AT(ADDR(.text) - 0xE0000000) {
+ .text : AT(ADDR(.text) - k_highhalf_addr) {
*(.text)
}
- .rodata ALIGN (0x1000) : AT(ADDR(.rodata) - 0xE0000000) {
+ .rodata ALIGN (0x1000) : AT(ADDR(.rodata) - k_highhalf_addr) {
*(.rodata)
}
- .data ALIGN (0x1000) : AT(ADDR(.data) - 0xE0000000) {
+ .data ALIGN (0x1000) : AT(ADDR(.data) - k_highhalf_addr) {
*(.data)
}
- .bss : AT(ADDR(.bss) - 0xE0000000) {
+ .bss : AT(ADDR(.bss) - k_highhalf_addr) {
sbss = .;
*(COMMON)
*(.bss)