diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1995-09-28 08:48:02 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1995-09-28 08:48:02 +0000 |
commit | 132dd910994fb8d04be5950304daf8dde6847075 (patch) | |
tree | 87ca8fe25a8c168496ceb01ab62ce6b4225ab33b /ld | |
parent | 277c7a9919a555018992375be3d1d2f8fa621c29 (diff) | |
download | gdb-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')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/emulparams/.Sanitize | 1 | ||||
-rw-r--r-- | ld/emulparams/armcoff.sh | 6 | ||||
-rw-r--r-- | ld/scripttempl/.Sanitize | 1 | ||||
-rw-r--r-- | ld/scripttempl/armcoff.sc | 37 |
5 files changed, 52 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 9e24c0b..2356ca2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com> + + * Makefile.in (earmcoff.c): Build. + * configure.tgt (arm-*-coff): New target + * emulparms/armcoff.sh: New file. + * scripttempl/armcoff.sc: New file. + Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com> * scripttempl/i386coff.sc: Remove .data2; no longer needed. diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index dc0ec29..19dcb23 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -44,6 +44,7 @@ a29k.sh alpha.sh armaoutb.sh armaoutl.sh +armcoff.sh armpe.sh coff_sparc.sh ebmon29k.sh diff --git a/ld/emulparams/armcoff.sh b/ld/emulparams/armcoff.sh new file mode 100644 index 0000000..9ef6ac4 --- /dev/null +++ b/ld/emulparams/armcoff.sh @@ -0,0 +1,6 @@ +ARCH=arm +SCRIPT_NAME=armcoff +OUTPUT_FORMAT="coff-arm-little" +LITTLE_OUTPUT_FORMAT="coff-arm-little" +BIG_OUTPUT_FORMAT="coff-arm-big" +#TEMPLATE_NAME=armcoff 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 |