Guest User

Untitled

a guest
Apr 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. diff -Naur binutils-2.20/bfd/config.bfd binutils-dux/bfd/config.bfd
  2. --- binutils-2.20/bfd/config.bfd 2009-08-06 13:38:00.000000000 -0400
  3. +++ binutils-dux/bfd/config.bfd 2009-11-07 00:46:44.203858221 -0500
  4. @@ -603,6 +603,10 @@
  5. targ_selvecs="i386linux_vec i386pei_vec"
  6. targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
  7. ;;
  8. + i[3-7]86-*-dux*)
  9. + targ_defvec=bfd_elf32_i386_vec
  10. + targ_selvecs=i386coff_vec
  11. + ;;
  12. #ifdef BFD64
  13. x86_64-*-darwin*)
  14. targ_defvec=mach_o_le_vec
  15. diff -Naur binutils-2.20/config.sub binutils-dux/config.sub
  16. --- binutils-2.20/config.sub 2009-08-17 00:10:29.000000000 -0400
  17. +++ binutils-dux/config.sub 2009-11-07 00:43:45.488404445 -0500
  18. @@ -1426,6 +1426,9 @@
  19. -dicos*)
  20. os=-dicos
  21. ;;
  22. + -dux*)
  23. + os=-dux
  24. + ;;
  25. -none)
  26. ;;
  27. *)
  28. diff -Naur binutils-2.20/gas/configure.tgt binutils-dux/gas/configure.tgt
  29. --- binutils-2.20/gas/configure.tgt 2009-09-09 04:13:28.000000000 -0400
  30. +++ binutils-dux/gas/configure.tgt 2009-11-07 00:48:39.134250186 -0500
  31. @@ -182,6 +182,7 @@
  32. i386-*-beospe*) fmt=coff em=pe ;;
  33. i386-*-beos*) fmt=elf ;;
  34. i386-*-coff) fmt=coff ;;
  35. + i386-*-dux*) fmt=elf ;;
  36. i386-*-elf) fmt=elf ;;
  37. i386-*-kaos*) fmt=elf ;;
  38. i386-*-bsd*) fmt=aout em=386bsd ;;
  39. diff -Naur binutils-2.20/ld/Makefile.in binutils-dux/ld/Makefile.in
  40. --- binutils-2.20/ld/Makefile.in 2009-09-07 08:10:24.000000000 -0400
  41. +++ binutils-dux/ld/Makefile.in 2009-11-07 00:52:10.469146003 -0500
  42. @@ -502,6 +502,7 @@
  43. eelf32xstormy16.o \
  44. eelf32xtensa.o \
  45. eelf_i386.o \
  46. + edux_i386.o \
  47. eelf_i386_be.o \
  48. eelf_i386_chaos.o \
  49. eelf_i386_fbsd.o \
  50. @@ -2451,6 +2452,9 @@
  51. eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
  52. $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  53. ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
  54. +edux_i386.c: $(srcdir)/emulparams/dux_i386.sh \
  55. + $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  56. + ${GENSCRIPTS} dux_i386 "$(tdir_dux_i386)"
  57. eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
  58. $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
  59. ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
  60. diff -Naur binutils-2.20/ld/configure.tgt binutils-dux/ld/configure.tgt
  61. --- binutils-2.20/ld/configure.tgt 2009-08-06 13:38:03.000000000 -0400
  62. +++ binutils-dux/ld/configure.tgt 2009-11-07 00:49:16.973863167 -0500
  63. @@ -181,6 +181,7 @@
  64. i[3-7]86-*-go32) targ_emul=i386go32 ;;
  65. i[3-7]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
  66. i[3-7]86-*-aix*) targ_emul=i386coff ;;
  67. +i[3-7]86-*-dux*) targ_emul=dux_i386 ;;
  68. i[3-7]86-*-sco*) targ_emul=i386coff ;;
  69. i[3-7]86-*-isc*) targ_emul=i386coff ;;
  70. i[3-7]86-*-lynxos*) targ_emul=i386lynx ;;
  71. diff -Naur binutils-2.20/ld/emulparams/dux_i386.sh binutils-dux/ld/emulparams/dux_i386.sh
  72. --- binutils-2.20/ld/emulparams/dux_i386.sh 1969-12-31 19:00:00.000000000 -0500
  73. +++ binutils-dux/ld/emulparams/dux_i386.sh 2009-11-07 00:50:35.873835144 -0500
  74. @@ -0,0 +1,13 @@
  75. +SCRIPT_NAME=elf
  76. +OUTPUT_FORMAT=elf32-i386
  77. +TEXT_START_ADDR=0x100000
  78. +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
  79. +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
  80. +ARCH=i386
  81. +MACHINE=
  82. +NOP=0x90909090
  83. +TEMPLATE_NAME=elf32
  84. +GENERATE_SHLIB_SCRIPT=yes
  85. +GENERATE_PIE_SCRIPT=yes
  86. +NO_SMALL_DATA=yes
  87. +SEPARATE_GOTPLT=12
Add Comment
Please, Sign In to add comment