aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-msp430-elf/msp430-tiny-ram.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-msp430-elf/msp430-tiny-ram.ld')
-rw-r--r--ld/testsuite/ld-msp430-elf/msp430-tiny-ram.ld49
1 files changed, 49 insertions, 0 deletions
diff --git a/ld/testsuite/ld-msp430-elf/msp430-tiny-ram.ld b/ld/testsuite/ld-msp430-elf/msp430-tiny-ram.ld
new file mode 100644
index 0000000..e2e6f2f
--- /dev/null
+++ b/ld/testsuite/ld-msp430-elf/msp430-tiny-ram.ld
@@ -0,0 +1,49 @@
+/* Script for ld testsuite */
+OUTPUT_ARCH(msp430)
+ENTRY(_start)
+
+MEMORY
+{
+ RAM : ORIGIN = 0x0, LENGTH = 0x2
+ ROM : ORIGIN = 0x2, LENGTH = 0x1fe
+ HIFRAM : ORIGIN = 0x200, LENGTH = 0x1000
+}
+
+SECTIONS
+{
+ .text :
+ {
+ PROVIDE (_start = .);
+ . = ALIGN(2);
+ *(.text .stub .text.* .gnu.linkonce.t.* .text:*)
+ } > ROM
+
+ .rodata :
+ {
+ *(.upper.rodata.* .rodata)
+ } > ROM
+
+ .data :
+ {
+ . = ALIGN(2);
+ *(.data.* .data)
+ } > RAM AT> ROM
+
+ .bss :
+ {
+ . = ALIGN(2);
+ *(.bss.* .bss)
+ } > RAM
+
+ .upper.data :
+ {
+ . = ALIGN(2);
+ *(.upper.data.* .upper.data)
+ } > HIFRAM AT> ROM
+
+ .upper.bss :
+ {
+ . = ALIGN(2);
+ *(.upper.bss.* .upper.bss)
+ } > HIFRAM
+}