aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1993-10-29 02:39:41 +0000
committerStan Shebs <shebs@codesourcery.com>1993-10-29 02:39:41 +0000
commit1ffcbc251195fea8068539020e47367b6dbd92b7 (patch)
treed6d559bf42ae8d84645fe747863dc23401e14987 /ld
parent7b95fe96efc9025196f6901bc43b3261c16b8081 (diff)
downloadgdb-1ffcbc251195fea8068539020e47367b6dbd92b7.zip
gdb-1ffcbc251195fea8068539020e47367b6dbd92b7.tar.gz
gdb-1ffcbc251195fea8068539020e47367b6dbd92b7.tar.bz2
Sparc COFF support
Diffstat (limited to 'ld')
-rw-r--r--ld/scripttempl/sparccoff.sc37
1 files changed, 37 insertions, 0 deletions
diff --git a/ld/scripttempl/sparccoff.sc b/ld/scripttempl/sparccoff.sc
new file mode 100644
index 0000000..8d79cd9
--- /dev/null
+++ b/ld/scripttempl/sparccoff.sc
@@ -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