From: Alan Modra Date: Fri, 31 May 2002 03:02:35 +0000 (+0000) Subject: * Makefile.am (ALL_EMULATIONS): Add ei386nto.o. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0cb91c65777580306e1c6cb70bb2362e0c08962;p=binutils-gdb.git * 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index ae0a99f2f29..b4fddad381e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2002-05-31 Graeme Peterson + + * 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 * NEWS: Add entry for VAX ELF support. diff --git a/ld/Makefile.am b/ld/Makefile.am index 5e396721398..170aa3d4ae6 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -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)" diff --git a/ld/Makefile.in b/ld/Makefile.in index df4cf3205f9..f1f5c25935b 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -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 \ diff --git a/ld/configure.tgt b/ld/configure.tgt index c33485f11cb..153dab81a2e 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -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 index 00000000000..e4872edec51 --- /dev/null +++ b/ld/emulparams/i386nto.sh @@ -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