summaryrefslogtreecommitdiff
path: root/test.ld
diff options
context:
space:
mode:
Diffstat (limited to 'test.ld')
-rw-r--r--test.ld16
1 files changed, 16 insertions, 0 deletions
diff --git a/test.ld b/test.ld
new file mode 100644
index 0000000..22a08e2
--- /dev/null
+++ b/test.ld
@@ -0,0 +1,16 @@
+MEMORY {
+ ROM(rx) : ORIGIN = 0x00000000, LENGTH = 4M
+}
+
+SECTIONS {
+ . = ORIGIN(ROM);
+ .text : {
+ KEEP(*(.text))
+ . = ALIGN(2);
+ *(.text*)
+ . = ALIGN(2);
+ KEEP(*(.rodata))
+ *(.rodata*)
+ . = ALIGN(2);
+ } >ROM
+}