* Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
authorAlan Modra <amodra@gmail.com>
Fri, 31 May 2002 03:02:35 +0000 (03:02 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 31 May 2002 03:02:35 +0000 (03:02 +0000)
(ei386nto.c): Add rule.
* Makefile.in: Regenerate.
* configure.tgt: Add i[3456]86-*-nto-qnx*.
* emulparams/i386nto.sh: New file.

ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure.tgt
ld/emulparams/i386nto.sh [new file with mode: 0644]

index ae0a99f2f2951b5230691f0ac7de5084fab81f84..b4fddad381e228bfa49a55fba4c15518174b30bc 100644 (file)
@@ -1,3 +1,11 @@
+2002-05-31  Graeme Peterson  <gp@qnx.com>
+
+       * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
+       (ei386nto.c): Add rule.
+       * Makefile.in: Regenerate.
+       * configure.tgt: Add i[3456]86-*-nto-qnx*.
+       * emulparams/i386nto.sh: New file.
+
 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
 
        * NEWS: Add entry for VAX ELF support.
index 5e396721398be1cc0c7d2ae954065654de951e8b..170aa3d4ae6df7647e193a61a27040671fc28c28 100644 (file)
@@ -208,6 +208,7 @@ ALL_EMULATIONS = \
        ei386moss.o \
        ei386msdos.o \
        ei386nbsd.o \
+       ei386nto.o \
        ei386nw.o \
        ei386pe.o \
        ei386pe_posix.o \
@@ -795,6 +796,9 @@ ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
 ei386nbsd.c:   $(srcdir)/emulparams/i386nbsd.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
+ei386nto.c:    $(srcdir)/emulparams/i386nto.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} i386nto "$(tdir_i386nto)"
 ei386nw.c:     $(srcdir)/emulparams/i386nw.sh \
   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
index df4cf3205f9a001284bbed755f5df7256357e1e8..f1f5c25935bb0d812446cdaf791ffd55cf806fb8 100644 (file)
@@ -286,7 +286,7 @@ deffilep.c ldgram.c ldlex.c
 
 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
-TAR = gtar
+TAR = tar
 GZIP_ENV = --best
 SOURCES = $(ld_new_SOURCES) $(EXTRA_ld_new_SOURCES)
 OBJECTS = $(ld_new_OBJECTS)
@@ -1522,6 +1522,9 @@ ez8001.c: $(srcdir)/emulparams/z8001.sh \
 ez8002.c: $(srcdir)/emulparams/z8002.sh \
   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} z8002 "$(tdir_z8002)"
+ei386nto.c: $(srcdir)/emulparams/i386nto.sh \
+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} i386nto "$(tdir_i386nto)"
 
 # The generated emulation files mostly have the same dependencies.
 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
index c33485f11cbbb39c2d66827c3682fa3eae938f4b..153dab81a2e0b10fe4c190f7edeca967480427eb 100644 (file)
@@ -119,6 +119,7 @@ m68*-ericsson-ose)  targ_emul=sun3 ;;
 m68*-apple-aux*)       targ_emul=m68kaux ;;
 *-tandem-none)         targ_emul=st2000 ;;
 i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
+i[3456]86-*-nto-qnx*)  targ_emul=i386nto ;;
 i[3456]86-*-vsta)      targ_emul=vsta ;;
 i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
 i[3456]86-*-go32)      targ_emul=i386go32 ;;
diff --git a/ld/emulparams/i386nto.sh b/ld/emulparams/i386nto.sh
new file mode 100644 (file)
index 0000000..e4872ed
--- /dev/null
@@ -0,0 +1,12 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-i386"
+TEXT_START_ADDR=0x08048000
+TEXT_START_SYMBOLS='_btext = .;'
+MAXPAGESIZE=0x1000
+NONPAGED_TEXT_START_ADDR=0x08048000
+#SHLIB_TEXT_START_ADDR=0xb0300000
+ARCH=i386
+MACHINE=
+NOP=0x9090
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes