aboutsummaryrefslogtreecommitdiff
path: root/ld/mips.sc-sh
diff options
context:
space:
mode:
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