aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/h8500m.sc
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-02-04 22:57:26 +0000
committerSteve Chamberlain <sac@cygnus>1994-02-04 22:57:26 +0000
commit367428b5a1b9bf3ec92e00d3f19793ec1c0a80fc (patch)
tree732c26da72f5eb875822d8b29cc431bea0fb9986 /ld/scripttempl/h8500m.sc
parent9ebe52b3b94bf5a58d7fef576c5ad3cbec501dfd (diff)
downloadgdb-367428b5a1b9bf3ec92e00d3f19793ec1c0a80fc.zip
gdb-367428b5a1b9bf3ec92e00d3f19793ec1c0a80fc.tar.gz
gdb-367428b5a1b9bf3ec92e00d3f19793ec1c0a80fc.tar.bz2
Support for various sicko segmented memory models.
Diffstat (limited to 'ld/scripttempl/h8500m.sc')
-rw-r--r--ld/scripttempl/h8500m.sc61
1 files changed, 61 insertions, 0 deletions
diff --git a/ld/scripttempl/h8500m.sc b/ld/scripttempl/h8500m.sc
new file mode 100644
index 0000000..b1dee9d
--- /dev/null
+++ b/ld/scripttempl/h8500m.sc
@@ -0,0 +1,61 @@
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_ARCH(${ARCH})
+
+/* Code and data, both larger than 64k */
+
+SECTIONS
+{
+.text ${RELOCATING+ 0x10000} :
+ {
+ *(.text)
+ ${RELOCATING+ _etext = . ; }
+ }
+
+
+.data ${RELOCATING+ 0x20000} :
+ {
+ *(.data)
+ ${RELOCATING+ _edata = . ; }
+ }
+
+.rdata ${RELOCATING+ . } :
+ {
+ *(.rdata);
+ *(.strings)
+ ___ctors = . ;
+ *(.ctors)
+ ___ctors_end = . ;
+ ___dtors = . ;
+ *(.dtors)
+ ___dtors_end = . ;
+ }
+
+.bss ${RELOCATING+ . } :
+ {
+ ${RELOCATING+ __start_bss = . ; }
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ _end = . ; }
+ }
+
+.stack ${RELOCATING+ 0x2fff0} :
+ {
+ ${RELOCATING+ _stack = . ; }
+ *(.stack)
+ }
+
+ .stab . (NOLOAD) :
+ {
+ [ .stab ]
+ }
+ .stabstr . (NOLOAD) :
+ {
+ [ .stabstr ]
+ }
+}
+EOF
+
+
+
+