aboutsummaryrefslogtreecommitdiff
path: root/ld/mips.sc-sh
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-01-22 22:30:52 +0000
committerIan Lance Taylor <ian@airs.com>1993-01-22 22:30:52 +0000
commit42b5c73927f9c86c0726b25e271b76133a8e9178 (patch)
tree80786c8f5eedf148e80f45cbad461d7996e6327f /ld/mips.sc-sh
parent746ed5252937d09dd4abc06e13c168901468b28c (diff)
downloadgdb-42b5c73927f9c86c0726b25e271b76133a8e9178.zip
gdb-42b5c73927f9c86c0726b25e271b76133a8e9178.tar.gz
gdb-42b5c73927f9c86c0726b25e271b76133a8e9178.tar.bz2
Fri Jan 22 14:22:44 1993 Ian Lance Taylor (ian@cygnus.com)
* mips.sc-sh: New file. Ultrix, and hopefully other MIPS ECOFF targets, linker script. * mipslit.sh: New file. Little endian MIPS emulation. * config/mips-lit.mt: New file. Use mipslit emulation. * configure.in (mips-dec-ultrix*): Use target mips-lit. * Makefile.in (ALL_EMULATIONS): Added em_mipslit.o. (em_mipslit.c): New target. Uses mipslit.sh.
Diffstat (limited to 'ld/mips.sc-sh')
-rw-r--r--ld/mips.sc-sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/ld/mips.sc-sh b/ld/mips.sc-sh
new file mode 100644
index 0000000..3e3ba75
--- /dev/null
+++ b/ld/mips.sc-sh
@@ -0,0 +1,45 @@
+# Linker script for MIPS. This works on a DECstation running Ultrix,
+# and may work on other platforms as well.
+# Ian Lance Taylor <ian@cygnus.com>.
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+
+ENTRY(__start)
+
+SECTIONS
+{
+ .text ${RELOCATING+ 0x400000 + SIZEOF_HEADERS} : {
+ *(.init)
+ ${RELOCATING+ eprol = .};
+ *(.text)
+ *(.fini)
+ ${RELOCATING+ etext = .};
+ }
+ .rdata ${RELOCATING+ 0x10000000} : {
+ *(.rdata)
+ }
+ .data ${RELOCATING+ .} : {
+ *(.data)
+ }
+ ${RELOCATING+ _gp = . + 0x8000};
+ .lit8 ${RELOCATING+ .} : {
+ *(.lit8)
+ }
+ .lit4 ${RELOCATING+ .} : {
+ *(.lit4)
+ }
+ .sdata ${RELOCATING+ .} : {
+ *(.sdata)
+ }
+ ${RELOCATING+ edata = .};
+ .sbss ${RELOCATING+ .} : {
+ *(.sbss)
+ }
+ .bss ${RELOCATING+ .} : {
+ *(.bss)
+ *(COMMON)
+ }
+ ${RELOCATING+ end = .};
+}
+EOF