aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/linker.ld')
-rw-r--r--src/userspace/linker.ld21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/userspace/linker.ld b/src/userspace/linker.ld
index d793912..8ede485 100644
--- a/src/userspace/linker.ld
+++ b/src/userspace/linker.ld
@@ -1,19 +1,24 @@
ENTRY(_start)
-
-SECTIONS {
- .text : {
+SECTIONS
+{
+ .text 0x40000000:
+ {
+ code = .; _code = .; __code = .;
*(.text)
- . = ALIGN(4096);
}
- .data : {
+ .data ALIGN(0x400000):
+ {
+ data = .; _data = .; __data = .;
*(.data)
*(.rodata)
- . = ALIGN(4096);
}
- .bss : {
+ .bss ALIGN(0x400000):
+ {
+ bss = .; _bss = .; __bss = .;
*(.bss)
- . = ALIGN(4096);
}
+
+ end = .; _end = .; __end = .;
} \ No newline at end of file