aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts/rgn-at9.t
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-scripts/rgn-at9.t')
-rw-r--r--ld/testsuite/ld-scripts/rgn-at9.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/rgn-at9.t b/ld/testsuite/ld-scripts/rgn-at9.t
new file mode 100644
index 0000000..7342e64
--- /dev/null
+++ b/ld/testsuite/ld-scripts/rgn-at9.t
@@ -0,0 +1,12 @@
+MEMORY
+{
+ ram : ORIGIN = 0x10000, LENGTH = 0x10000
+ rom : ORIGIN = 0x20080, LENGTH = 0x10000
+}
+
+SECTIONS
+{
+ .text : ALIGN_WITH_INPUT {*(.text)} > ram AT> rom
+ .data : ALIGN_WITH_INPUT {*(.data)} > ram AT> rom
+ /DISCARD/ : {*(*)}
+}