1999-09-04 Steve Chamberlain <sac@pobox.com>

* configure.tgt (pjl-*-*, pj-*-*): New targets.
	* emulparams/pjelf.sh: New file.
	* emulparams/pjlelf.sh: New file.
	* scripttempl/pj.sc: New file.
	* Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
	(epjelf.o, epjlelf.o): New targets.
	* Makefile.in: Rebuild.
This commit is contained in:
Ian Lance Taylor 1999-09-04 17:37:36 +00:00
parent 6040cc9d99
commit c6c8c6dc7a
7 changed files with 93 additions and 0 deletions

View File

@ -1,3 +1,13 @@
1999-09-04 Steve Chamberlain <sac@pobox.com>
* configure.tgt (pjl-*-*, pj-*-*): New targets.
* emulparams/pjelf.sh: New file.
* emulparams/pjlelf.sh: New file.
* scripttempl/pj.sc: New file.
* Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
(epjelf.o, epjlelf.o): New targets.
* Makefile.in: Rebuild.
Fri Sep 3 20:17:08 1999 Jeffrey A Law (law@cygnus.com)
* emulparams/elf64hppa.sh (MAXPAGESIZE): Define.

View File

@ -179,6 +179,8 @@ ALL_EMULATIONS = \
emipslit.o \
emipslnews.o \
enews.o \
epjelf.o \
epjlelf.o \
ens32knbsd.o \
epc532macha.o \
eppcmacos.o \
@ -553,6 +555,12 @@ ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
epjelf.c: $(srcdir)/emulparams/pjelf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} pjelf "$(tdir_pjelf)"
epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
$(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"

View File

@ -284,6 +284,8 @@ ALL_EMULATIONS = \
emipslit.o \
emipslnews.o \
enews.o \
epjelf.o \
epjlelf.o \
ens32knbsd.o \
epc532macha.o \
eppcmacos.o \
@ -1254,6 +1256,12 @@ ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
epjelf.c: $(srcdir)/emulparams/pjelf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} pjelf "$(tdir_pjelf)"
epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
$(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"

View File

@ -230,6 +230,8 @@ ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
powerpc-*-linux-gnu*) targ_emul=elf32ppclinux; targ_extra_emuls=elf32ppc;
targ_extra_libpath=elf32ppc ;;
pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;;
pj*-*-*) targ_emul=pjelf ;;
powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-sysv* \
| powerpc-*-netbsd* | powerpc-*-vxworks*)
targ_emul=elf32ppc ;;

5
ld/emulparams/pjelf.sh Normal file
View File

@ -0,0 +1,5 @@
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-pj"
TEXT_START_ADDR=0x1000000
MAXPAGESIZE=0x1000
ARCH=pj

5
ld/emulparams/pjlelf.sh Normal file
View File

@ -0,0 +1,5 @@
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-pjl"
TEXT_START_ADDR=0x1000000
MAXPAGESIZE=0x1000
ARCH=pj

55
ld/scripttempl/pj.sc Normal file
View File

@ -0,0 +1,55 @@
TORS=".tors :
{
___ctors = . ;
*(.ctors)
___ctors_end = . ;
___dtors = . ;
*(.dtors)
___dtors_end = . ;
} > ram"
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
MEMORY
{
ram : o = 0x1000, l = 512M
}
SECTIONS
{
.text :
{
*(.text)
*(.strings)
${RELOCATING+ _etext = . ; }
} ${RELOCATING+ > ram}
${CONSTRUCTING+${TORS}}
.data :
{
*(.data)
${RELOCATING+ _edata = . ; }
} ${RELOCATING+ > ram}
.bss :
{
${RELOCATING+ _bss_start = . ; }
*(.bss)
*(COMMON)
${RELOCATING+ _end = . ; }
} ${RELOCATING+ > ram}
.stack ${RELOCATING+ 0x30000 } :
{
${RELOCATING+ _stack = . ; }
*(.stack)
} ${RELOCATING+ > ram}
.stab 0 ${RELOCATING+(NOLOAD)} :
{
*(.stab)
}
.stabstr 0 ${RELOCATING+(NOLOAD)} :
{
*(.stabstr)
}
}
EOF