binutils.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. diff --git a/bfd/config.bfd b/bfd/config.bfd
  2. index b998830..3d6bdc4 100644
  3. --- a/bfd/config.bfd
  4. +++ b/bfd/config.bfd
  5. @@ -661,6 +661,10 @@ case "${targ}" in
  6. targ_defvec=i386_elf32_vec
  7. targ_selvecs="iamcu_elf32_vec i386_nlm32_vec i386_coff_vec i386_aout_vec"
  8. ;;
  9. + i[3-7]86-*-toaru*)
  10. + targ_defvec=i386_elf32_vec
  11. + targ_selvecs=
  12. + ;;
  13. i[3-7]86-*-linux*aout*)
  14. targ_defvec=i386_aout_linux_vec
  15. targ_selvecs="i386_elf32_vec iamcu_elf32_vec"
  16. diff --git a/config.sub b/config.sub
  17. index 2377e13..19fa153 100755
  18. --- a/config.sub
  19. +++ b/config.sub
  20. @@ -1375,6 +1375,7 @@ case $os in
  21. # -sysv* is not here because it comes later, after sysvr4.
  22. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  23. | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  24. + | -toaru* \
  25. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
  26. | -sym* | -kopensolaris* | -plan9* \
  27. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  28. diff --git a/gas/configure.tgt b/gas/configure.tgt
  29. index e2df659..72a6bbf 100644
  30. --- a/gas/configure.tgt
  31. +++ b/gas/configure.tgt
  32. @@ -283,6 +283,7 @@ case ${generic_target} in
  33. i386-*-chaos) fmt=elf ;;
  34. i386-*-rdos*) fmt=elf ;;
  35. i386-*-darwin*) fmt=macho ;;
  36. + i386-*-toaru*) fmt=elf ;;
  37. i860-*-*) fmt=elf endian=little ;;
  38. diff --git a/ld/configure.tgt b/ld/configure.tgt
  39. index a3db909..13c4387 100644
  40. --- a/ld/configure.tgt
  41. +++ b/ld/configure.tgt
  42. @@ -269,6 +269,7 @@ x86_64-*-linux-*) targ_emul=elf_x86_64
  43. targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
  44. tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
  45. tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'` ;;
  46. +i[3-7]86-*-toaru*) targ_emul=elf_i386 ;;
  47. i[3-7]86-*-sysv[45]*) targ_emul=elf_i386
  48. targ_extra_emuls=elf_iamcu ;;
  49. i[3-7]86-*-solaris2*) targ_emul=elf_i386_sol2
  50. diff --git a/ld/emulparams/elf_i386.sh b/ld/emulparams/elf_i386.sh
  51. index b08e661..7bd4bd5 100644
  52. --- a/ld/emulparams/elf_i386.sh
  53. +++ b/ld/emulparams/elf_i386.sh
  54. @@ -33,4 +33,8 @@ case "$target" in
  55. ;;
  56. esac
  57. ;;
  58. + i[3-7]86*-toaru*)
  59. + TEXT_START_ADDR=0x40000000
  60. + ;;
  61. esac
  62. +