summaryrefslogtreecommitdiff
path: root/src/grapes/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/grapes/link.ld')
-rw-r--r--src/grapes/link.ld26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/grapes/link.ld b/src/grapes/link.ld
new file mode 100644
index 0000000..7527b80
--- /dev/null
+++ b/src/grapes/link.ld
@@ -0,0 +1,26 @@
+ENTRY (start)
+
+SECTIONS{
+ . = 0x10000000;
+
+ .text : {
+ *(.text)
+ }
+
+ .rodata ALIGN (0x1000) :{
+ *(.rodata)
+ }
+
+ .data ALIGN (0x1000) : {
+ *(.data)
+ }
+
+ .bss : {
+ sbss = .;
+ *(COMMON)
+ *(.bss)
+ ebss = .;
+ }
+
+ end = .; _end = .; __end = .;
+}