* Makefile.in (earmcoff.c): Build.

* configure.tgt (arm-*-coff): New target
	* emulparms/armcoff.sh: New file.
	* scripttempl/armcoff.sc: New file.
This commit is contained in:
David Edelsohn 1995-09-28 08:48:02 +00:00
parent 277c7a9919
commit 132dd91099
5 changed files with 52 additions and 0 deletions

View File

@ -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.

View File

@ -44,6 +44,7 @@ a29k.sh
alpha.sh
armaoutb.sh
armaoutl.sh
armcoff.sh
armpe.sh
coff_sparc.sh
ebmon29k.sh

6
ld/emulparams/armcoff.sh Normal file
View File

@ -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

View File

@ -35,6 +35,7 @@ README
a29k.sc
alpha.sc
armaout.sc
armcoff.sc
aout.sc
ebmon29k.sc
elf.sc

37
ld/scripttempl/armcoff.sc Normal file
View File

@ -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