aboutsummaryrefslogtreecommitdiff
path: root/ld/h8300hms.sc-sh
diff options
context:
space:
mode:
Diffstat (limited to 'ld/h8300hms.sc-sh')
-rwxr-xr-xld/h8300hms.sc-sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/ld/h8300hms.sc-sh b/ld/h8300hms.sc-sh
new file mode 100755
index 0000000..8aa7ee1
--- /dev/null
+++ b/ld/h8300hms.sc-sh
@@ -0,0 +1,31 @@
+cat <<EOF
+OUTPUT_FORMAT(${OUTPUT_FORMAT})
+OUTPUT_ARCH(${ARCH})
+
+MEMORY {
+ rom : o = 0x0000, l = 0x7fe0
+ duart : o = 0x7fe0, l = 16
+ ram : o = 0x8000, l = 29k
+ hmsram: o = 0xfb80, l = 512
+ }
+
+SECTIONS
+{
+.text :
+ {
+ *(.text)
+ *(.strings)
+ } > ram
+.data :
+ {
+ *(.data)
+ } > ram
+.bss :
+ {
+ ${RELOCATING+ _bss_start = .}
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ _end = .}
+ } >ram
+}
+EOF