diff -crN binutils-/bfd/config.bfd binutils-work/bfd/config.bfd *** binutils-/bfd/config.bfd Thu Jan 10 10:49:06 2013 --- binutils-work/bfd/config.bfd Fri Jan 18 20:48:58 2013 *************** *** 680,686 **** ;; x86_64-*-rdos*) targ_defvec=bfd_elf64_x86_64_vec - targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec" want64=true ;; #endif --- 680,685 ---- diff -crN binutils-/ld/Makefile.am binutils-work/ld/Makefile.am *** binutils-/ld/Makefile.am Thu Jan 10 10:49:20 2013 --- binutils-work/ld/Makefile.am Fri Jan 18 20:48:58 2013 *************** *** 515,520 **** --- 515,521 ---- eelf64mmix.c \ eelf64ppc.c \ eelf64ppc_fbsd.c \ + eelf64rdos.c \ eelf64tilegx.c \ eelf64tilegx_be.c \ eelf_l1om.c \ *************** *** 2101,2106 **** --- 2102,2110 ---- $(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} elf64tilegx "$(tdir_elf64rdos)" eelf64tilegx.c: $(srcdir)/emulparams/elf64tilegx.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \ $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} diff -crN binutils-/ld/Makefile.in binutils-work/ld/Makefile.in *** binutils-/ld/Makefile.in Thu Jan 10 10:49:22 2013 --- binutils-work/ld/Makefile.in Fri Jan 18 20:48:58 2013 *************** *** 822,827 **** --- 822,828 ---- eelf64mmix.c \ eelf64ppc.c \ eelf64ppc_fbsd.c \ + eelf64rdos.c \ eelf64tilegx.c \ eelf64tilegx_be.c \ eelf_l1om.c \ *************** *** 1245,1250 **** --- 1246,1252 ---- @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@ *************** *** 3585,3590 **** --- 3587,3595 ---- $(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} diff -crN binutils-/ld/configure.tgt binutils-work/ld/configure.tgt *** binutils-/ld/configure.tgt Thu Jan 10 10:49:22 2013 --- binutils-work/ld/configure.tgt Fri Jan 18 20:48:58 2013 *************** *** 217,223 **** 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 ;; i[3-7]86-*-bsd) targ_emul=i386bsd ;; i[3-7]86-*-bsd386) targ_emul=i386bsd ;; i[3-7]86-*-bsdi*) targ_emul=i386bsd ;; --- 217,223 ---- 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=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 -crN binutils-/ld/emulparams/elf64rdos.sh binutils-work/ld/emulparams/elf64rdos.sh *** binutils-/ld/emulparams/elf64rdos.sh Thu Jan 1 01:00:00 1970 --- binutils-work/ld/emulparams/elf64rdos.sh Fri Jan 18 21:31:00 2013 *************** *** 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