summaryrefslogtreecommitdiff
path: root/tests/test.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-02-05 01:20:51 +0300
committerOxore <oxore@protonmail.com>2024-02-05 01:21:59 +0300
commit21a9aa92a7cf8767a0fcb33858546dea744c4071 (patch)
treea5313fdaff5c0ed2d3db416d027e6df21d3cd7ff /tests/test.ld
parent9fd2eba95beb6c9ce6fb26e1442aa2f68aac9b1f (diff)
Organize source code and tests
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
+}