aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-09-28 08:48:02 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-09-28 08:48:02 +0000
commit132dd910994fb8d04be5950304daf8dde6847075 (patch)
tree87ca8fe25a8c168496ceb01ab62ce6b4225ab33b /ld/scripttempl
parent277c7a9919a555018992375be3d1d2f8fa621c29 (diff)
downloadgdb-132dd910994fb8d04be5950304daf8dde6847075.zip
gdb-132dd910994fb8d04be5950304daf8dde6847075.tar.gz
gdb-132dd910994fb8d04be5950304daf8dde6847075.tar.bz2
* Makefile.in (earmcoff.c): Build.
* configure.tgt (arm-*-coff): New target * emulparms/armcoff.sh: New file. * scripttempl/armcoff.sc: New file.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/.Sanitize1
-rw-r--r--ld/scripttempl/armcoff.sc37
2 files changed, 38 insertions, 0 deletions
diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize
index dfdada5..f6d360a 100644
--- a/ld/scripttempl/.Sanitize
+++ b/ld/scripttempl/.Sanitize
@@ -35,6 +35,7 @@ README
a29k.sc
alpha.sc
armaout.sc
+armcoff.sc
aout.sc
ebmon29k.sc
elf.sc
diff --git a/ld/scripttempl/armcoff.sc b/ld/scripttempl/armcoff.sc
new file mode 100644
index 0000000..8243716
--- /dev/null
+++ b/ld/scripttempl/armcoff.sc
@@ -0,0 +1,37 @@
+# Linker script for ARM 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 0 ${RELOCATING+(NOLOAD)} :
+ {
+ [ .stab ]
+ }
+ .stabstr 0 ${RELOCATING+(NOLOAD)} :
+ {
+ [ .stabstr ]
+ }
+}
+EOF