summaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-11-08 13:17:43 +0000
committerNick Clifton <nickc@redhat.com>2004-11-08 13:17:43 +0000
commit7499d566bb9495cac23109f01ded20f8849d08ae (patch)
tree30530048723553d2c770364cea592becdda630c1 /ld/scripttempl
parentdc85a459cf260d72565cb988960c12ff9cd3da3c (diff)
downloadbinutils-7499d566bb9495cac23109f01ded20f8849d08ae.tar.gz
binutils-7499d566bb9495cac23109f01ded20f8849d08ae.tar.bz2
binutils-7499d566bb9495cac23109f01ded20f8849d08ae.zip
Add support fpr MAXQ processor
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/maxqcoff.sc43
1 files changed, 43 insertions, 0 deletions
diff --git a/ld/scripttempl/maxqcoff.sc b/ld/scripttempl/maxqcoff.sc
new file mode 100644
index 00000000000..2e093048c05
--- /dev/null
+++ b/ld/scripttempl/maxqcoff.sc
@@ -0,0 +1,43 @@
+test -z "$ENTRY" && ENTRY=_main
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+ENTRY(${ENTRY})
+MEMORY
+ {
+ rom (rx) : ORIGIN = 0, LENGTH = 0x7FFE
+ ram (!rx) : org = 0x0A000, l = 0x5FFF
+ }
+
+SECTIONS
+{
+ .text ${RELOCATING+ 0x0000}:
+ {
+ *(.text)
+ } >rom
+
+ .data ${RELOCATING}:
+ {
+ *(.data)
+ *(.rodata)
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ edata = .};
+ }>ram
+
+/* .bss ${RELOCATING+ SIZEOF(.data) + 0x0000} :
+ {
+ *(.bss)
+ *(COMMON)
+ }
+*/
+ .stab 0 ${RELOCATING+(NOLOAD)} :
+ {
+ [ .stab ]
+ }
+ .stabstr 0 ${RELOCATING+(NOLOAD)} :
+ {
+ [ .stabstr ]
+ }
+}
+EOF