summaryrefslogtreecommitdiff
path: root/src/user/user.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/user.ld')
-rw-r--r--src/user/user.ld27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/user/user.ld b/src/user/user.ld
new file mode 100644
index 0000000..2111b14
--- /dev/null
+++ b/src/user/user.ld
@@ -0,0 +1,27 @@
+OUTPUT_ARCH(riscv)
+ENTRY(_start)
+
+SECTIONS
+{
+ . = 0x0;
+
+ .text : {
+ *(.text.entry)
+ *(.text .text.*)
+ }
+
+ .rodata : {
+ . = ALIGN(16);
+ *(.rodata .rodata.*)
+ }
+
+ .data : {
+ . = ALIGN(16);
+ *(.data .data.*)
+ }
+
+ .bss : {
+ . = ALIGN(16);
+ *(.bss .bss.*)
+ }
+} \ No newline at end of file