Sparc COFF support
authorStan Shebs <shebs@codesourcery.com>
Fri, 29 Oct 1993 02:39:41 +0000 (02:39 +0000)
committerStan Shebs <shebs@codesourcery.com>
Fri, 29 Oct 1993 02:39:41 +0000 (02:39 +0000)
ld/scripttempl/sparccoff.sc [new file with mode: 0644]

diff --git a/ld/scripttempl/sparccoff.sc b/ld/scripttempl/sparccoff.sc
new file mode 100644 (file)
index 0000000..8d79cd9
--- /dev/null
@@ -0,0 +1,37 @@
+# Linker script for Sparc COFF.
+# Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
+test -z "$ENTRY" && ENTRY=_start
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+
+ENTRY(${ENTRY})
+
+SECTIONS
+{
+  .text ${RELOCATING+ SIZEOF_HEADERS} : {
+    *(.init)
+    *(.text)
+    *(.fini)
+    ${RELOCATING+ etext  =  .};
+  }
+  .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
+    *(.data)
+    ${RELOCATING+ edata  =  .};
+  }
+  .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
+  {                                    
+    *(.bss)
+    *(COMMON)
+    ${RELOCATING+ end = .};
+  }
+  .stab  . (NOLOAD) : 
+  {
+    [ .stab ]
+  }
+  .stabstr  . (NOLOAD) :
+  {
+    [ .stabstr ]
+  }
+}
+EOF
This page took 0.024812 seconds and 4 git commands to generate.