aboutsummaryrefslogtreecommitdiff
path: root/apps/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'apps/link.ld')
-rw-r--r--apps/link.ld24
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/link.ld b/apps/link.ld
new file mode 100644
index 0000000..ee41578
--- /dev/null
+++ b/apps/link.ld
@@ -0,0 +1,24 @@
+ENTRY(main)
+SECTIONS
+{
+ .text 0x40000000:
+ {
+ code = .; _code = .; __code = .;
+ *(.text)
+ }
+
+ .data ALIGN(0x400000):
+ {
+ data = .; _data = .; __data = .;
+ *(.data)
+ *(.rodata)
+ }
+
+ .bss ALIGN(0x400000):
+ {
+ bss = .; _bss = .; __bss = .;
+ *(.bss)
+ }
+
+ end = .; _end = .; __end = .;
+}