Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naur binutils-2.20/bfd/config.bfd binutils-dux/bfd/config.bfd
- --- binutils-2.20/bfd/config.bfd 2009-08-06 13:38:00.000000000 -0400
- +++ binutils-dux/bfd/config.bfd 2009-11-07 00:46:44.203858221 -0500
- @@ -603,6 +603,10 @@
- targ_selvecs="i386linux_vec i386pei_vec"
- targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
- ;;
- + i[3-7]86-*-dux*)
- + targ_defvec=bfd_elf32_i386_vec
- + targ_selvecs=i386coff_vec
- + ;;
- #ifdef BFD64
- x86_64-*-darwin*)
- targ_defvec=mach_o_le_vec
- diff -Naur binutils-2.20/config.sub binutils-dux/config.sub
- --- binutils-2.20/config.sub 2009-08-17 00:10:29.000000000 -0400
- +++ binutils-dux/config.sub 2009-11-07 00:43:45.488404445 -0500
- @@ -1426,6 +1426,9 @@
- -dicos*)
- os=-dicos
- ;;
- + -dux*)
- + os=-dux
- + ;;
- -none)
- ;;
- *)
- diff -Naur binutils-2.20/gas/configure.tgt binutils-dux/gas/configure.tgt
- --- binutils-2.20/gas/configure.tgt 2009-09-09 04:13:28.000000000 -0400
- +++ binutils-dux/gas/configure.tgt 2009-11-07 00:48:39.134250186 -0500
- @@ -182,6 +182,7 @@
- i386-*-beospe*) fmt=coff em=pe ;;
- i386-*-beos*) fmt=elf ;;
- i386-*-coff) fmt=coff ;;
- + i386-*-dux*) fmt=elf ;;
- i386-*-elf) fmt=elf ;;
- i386-*-kaos*) fmt=elf ;;
- i386-*-bsd*) fmt=aout em=386bsd ;;
- diff -Naur binutils-2.20/ld/Makefile.in binutils-dux/ld/Makefile.in
- --- binutils-2.20/ld/Makefile.in 2009-09-07 08:10:24.000000000 -0400
- +++ binutils-dux/ld/Makefile.in 2009-11-07 00:52:10.469146003 -0500
- @@ -502,6 +502,7 @@
- eelf32xstormy16.o \
- eelf32xtensa.o \
- eelf_i386.o \
- + edux_i386.o \
- eelf_i386_be.o \
- eelf_i386_chaos.o \
- eelf_i386_fbsd.o \
- @@ -2451,6 +2452,9 @@
- eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
- $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
- ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
- +edux_i386.c: $(srcdir)/emulparams/dux_i386.sh \
- + $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
- + ${GENSCRIPTS} dux_i386 "$(tdir_dux_i386)"
- eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
- $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
- ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
- diff -Naur binutils-2.20/ld/configure.tgt binutils-dux/ld/configure.tgt
- --- binutils-2.20/ld/configure.tgt 2009-08-06 13:38:03.000000000 -0400
- +++ binutils-dux/ld/configure.tgt 2009-11-07 00:49:16.973863167 -0500
- @@ -181,6 +181,7 @@
- i[3-7]86-*-go32) targ_emul=i386go32 ;;
- i[3-7]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
- i[3-7]86-*-aix*) targ_emul=i386coff ;;
- +i[3-7]86-*-dux*) targ_emul=dux_i386 ;;
- i[3-7]86-*-sco*) targ_emul=i386coff ;;
- i[3-7]86-*-isc*) targ_emul=i386coff ;;
- i[3-7]86-*-lynxos*) targ_emul=i386lynx ;;
- diff -Naur binutils-2.20/ld/emulparams/dux_i386.sh binutils-dux/ld/emulparams/dux_i386.sh
- --- binutils-2.20/ld/emulparams/dux_i386.sh 1969-12-31 19:00:00.000000000 -0500
- +++ binutils-dux/ld/emulparams/dux_i386.sh 2009-11-07 00:50:35.873835144 -0500
- @@ -0,0 +1,13 @@
- +SCRIPT_NAME=elf
- +OUTPUT_FORMAT=elf32-i386
- +TEXT_START_ADDR=0x100000
- +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
- +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
- +ARCH=i386
- +MACHINE=
- +NOP=0x90909090
- +TEMPLATE_NAME=elf32
- +GENERATE_SHLIB_SCRIPT=yes
- +GENERATE_PIE_SCRIPT=yes
- +NO_SMALL_DATA=yes
- +SEPARATE_GOTPLT=12
Add Comment
Please, Sign In to add comment