* Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
authorAlan Modra <amodra@gmail.com>
Wed, 23 Jan 2013 10:31:13 +0000 (10:31 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 23 Jan 2013 10:31:13 +0000 (10:31 +0000)
(eelf64rdos.c): New rule.
* emulparams/elf64rdos.sh: New file.
* configure.tgt (x86_64-*-rdos*): Use above.
* Makefile.in: Regenerate.

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

index 682d8198e23fa5cb01399dcc2926eda7b6ebc211..4992e1c56eb5f2b402f461b27d281ac6b60102f7 100644 (file)
@@ -1,3 +1,11 @@
+2013-01-23  Leif Ekblad  <leif@rdos.net>
+
+       * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
+       (eelf64rdos.c): New rule.
+       * emulparams/elf64rdos.sh: New file.
+       * configure.tgt (x86_64-*-rdos*): Use above.
+       * Makefile.in: Regenerate.
+
 2013-01-22  Roland McGrath  <mcgrathr@google.com>
 
        * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
index c12bcb68658ae6e4583c6d6a7b5ca0a298b77f1f..837a878b1f1e5a78bbca21bff0a732bea36b1ac2 100644 (file)
@@ -516,6 +516,7 @@ ALL_64_EMULATION_SOURCES = \
        eelf64mmix.c \
        eelf64ppc.c \
        eelf64ppc_fbsd.c \
+       eelf64rdos.c \
        eelf64tilegx.c \
        eelf64tilegx_be.c \
        eelf_l1om.c \
@@ -2102,6 +2103,9 @@ eelf64ppc_fbsd.c: $(srcdir)/emulparams/elf64ppc_fbsd.sh \
   $(srcdir)/emultempl/ppc64elf.em ldemul-list.h \
   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} elf64ppc_fbsd "$(tdir_elf64ppc_fbsd)"
+eelf64rdos.c: $(srcdir)/emulparams/elf64rdos.sh \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} elf64rdos "$(tdir_elf64rdos)"
 eelf64tilegx.c: $(srcdir)/emulparams/elf64tilegx.sh \
   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
index e21a7ced0b650d6d8ad858edffaaf811bcaa508d..3fd08fc5312450f572563344b70d72bdb40822b9 100644 (file)
@@ -823,6 +823,7 @@ ALL_64_EMULATION_SOURCES = \
        eelf64mmix.c \
        eelf64ppc.c \
        eelf64ppc_fbsd.c \
+       eelf64rdos.c \
        eelf64tilegx.c \
        eelf64tilegx_be.c \
        eelf_l1om.c \
@@ -1246,6 +1247,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64mmix.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64ppc.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64ppc_fbsd.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64rdos.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64tilegx.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf64tilegx_be.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf_i386.Po@am__quote@
@@ -3586,6 +3588,9 @@ eelf64ppc_fbsd.c: $(srcdir)/emulparams/elf64ppc_fbsd.sh \
   $(srcdir)/emultempl/ppc64elf.em ldemul-list.h \
   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
        ${GENSCRIPTS} elf64ppc_fbsd "$(tdir_elf64ppc_fbsd)"
+eelf64rdos.c: $(srcdir)/emulparams/elf64rdos.sh \
+  $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+       ${GENSCRIPTS} elf64rdos "$(tdir_elf64rdos)"
 eelf64tilegx.c: $(srcdir)/emulparams/elf64tilegx.sh \
   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
index 33e7a17c51aaad94d84242dfab3f378365dfbfff..f4d1c31532b339596c4009f256ac312bd335245a 100644 (file)
@@ -217,7 +217,7 @@ i[3-7]86-*-coff)    targ_emul=i386coff ;;
 i[3-7]86-*-rtems*)     targ_emul=elf_i386 ;;
 i[3-7]86-*-aros*)      targ_emul=elf_i386 ;;
 i[3-7]86-*-rdos*)      targ_emul=elf_i386 ;;
-x86_64-*-rdos*)                targ_emul=elf_x86_64 ;;
+x86_64-*-rdos*)                targ_emul=elf64rdos ;;
 i[3-7]86-*-bsd)                targ_emul=i386bsd ;;
 i[3-7]86-*-bsd386)     targ_emul=i386bsd ;;
 i[3-7]86-*-bsdi*)      targ_emul=i386bsd ;;
diff --git a/ld/emulparams/elf64rdos.sh b/ld/emulparams/elf64rdos.sh
new file mode 100644 (file)
index 0000000..021bc70
--- /dev/null
@@ -0,0 +1,23 @@
+. ${srcdir}/emulparams/plt_unwind.sh
+SCRIPT_NAME=elf
+ELFSIZE=64
+OUTPUT_FORMAT="elf64-x86-64"
+NO_REL_RELOCS=yes
+MAXPAGESIZE=0x1000
+COMMONPAGESIZE=0x1000
+TEXT_START_ADDR=0x180E0000000
+LARGE_DATA_ADDR=0x80020000000
+ARCH="i386:x86-64"
+MACHINE=
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+LARGE_SECTIONS=yes
+IREL_IN_PLT=
+
+if [ "x${host}" = "x${target}" ]; then
+  case " $EMULATION_LIBPATH " in
+    *" ${EMULATION_NAME} "*)
+      NATIVE=yes
+  esac
+fi