1999-09-04 Steve Chamberlain <sac@pobox.com>
authorIan Lance Taylor <ian@airs.com>
Sat, 4 Sep 1999 17:37:36 +0000 (17:37 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 4 Sep 1999 17:37:36 +0000 (17:37 +0000)
* 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.

ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure.tgt
ld/emulparams/pjelf.sh [new file with mode: 0644]
ld/emulparams/pjlelf.sh [new file with mode: 0644]
ld/scripttempl/pj.sc [new file with mode: 0644]

index 485c9b9decadace0c15c9f22c5ff597b063aad65..72edd8b7dff44d3044a850c79fa317dccf5c57d2 100644 (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.
index 3a72e421d103cddeed700726bd8b61b254a1e034..19153a5dda93d383458e09457bf3df063aeb477f 100644 (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)"
index ef85924539d0c5fc877cb3218fff2ead99196f4c..e82d6a4e7658150a0894975fa076118329e47066 100644 (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)"
index a2d032b48b5ecb67fd5f3f05f6f273e1039582d2..9289ca9a96808934691e0818a44852696f1f83e0 100644 (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 ;;
diff --git a/ld/emulparams/pjelf.sh b/ld/emulparams/pjelf.sh
new file mode 100644 (file)
index 0000000..acfd2b3
--- /dev/null
@@ -0,0 +1,5 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-pj"
+TEXT_START_ADDR=0x1000000
+MAXPAGESIZE=0x1000
+ARCH=pj
diff --git a/ld/emulparams/pjlelf.sh b/ld/emulparams/pjlelf.sh
new file mode 100644 (file)
index 0000000..35958fd
--- /dev/null
@@ -0,0 +1,5 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-pjl"
+TEXT_START_ADDR=0x1000000
+MAXPAGESIZE=0x1000
+ARCH=pj
diff --git a/ld/scripttempl/pj.sc b/ld/scripttempl/pj.sc
new file mode 100644 (file)
index 0000000..93981a5
--- /dev/null
@@ -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