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