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