1 diff -ruN binutils-2.21.1/bfd/config.bfd binutils-2.21.1.aros/bfd/config.bfd
2 --- binutils-2.21.1/bfd/config.bfd 2011-04-01 14:02:42.000000000 +0200
3 +++ binutils-2.21.1.aros/bfd/config.bfd 2011-06-27 09:39:00.000000000 +0200
6 arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
7 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
9 + arm*-*-eabi* | arm-*-aros)
10 targ_defvec=bfd_elf32_littlearm_vec
11 targ_selvecs=bfd_elf32_bigarm_vec
16 targ_defvec=bfd_elf32_i386_vec
17 + targ_selvecs="bfd_elf64_x86_64_vec bfd_elf32_powerpc_vec"
21 targ_defvec=bfd_elf32_i386_vec
27 + targ_defvec=bfd_elf64_x86_64_vec
28 + targ_selvecs="bfd_elf32_i386_vec bfd_elf32_powerpc_vec"
33 targ_defvec=bfd_elf32_i386_vec
35 targ_selvecs="cisco_core_big_vec ieee_vec"
38 - m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
39 + m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux* | m68*-*-aros*)
40 targ_defvec=bfd_elf32_m68k_vec
41 targ_selvecs="m68kcoff_vec ieee_vec"
43 @@ -1197,6 +1204,11 @@
44 targ_defvec=bfd_elf32_rx_le_vec
45 targ_selvecs="bfd_elf32_rx_be_vec bfd_elf32_rx_le_vec"
48 + targ_defvec=bfd_elf32_powerpc_vec
49 + targ_selvecs="bfd_elf32_i386_vec bfd_elf64_x86_64_vec"
54 targ_defvec=bfd_elf32_s390_vec
55 diff -ruN binutils-2.21.1/binutils/sysdep.h binutils-2.21.1.aros/binutils/sysdep.h
56 --- binutils-2.21.1/binutils/sysdep.h 2009-03-18 12:27:17.000000000 +0100
57 +++ binutils-2.21.1.aros/binutils/sysdep.h 2011-06-27 09:39:00.000000000 +0200
61 #include <sys/types.h>
62 +#include <sys/stat.h>
66 diff -ruN binutils-2.21.1/config.guess binutils-2.21.1.aros/config.guess
67 --- binutils-2.21.1/config.guess 2010-06-01 19:53:40.000000000 +0200
68 +++ binutils-2.21.1.aros/config.guess 2011-06-27 09:39:00.000000000 +0200
70 *:[Mm]orph[Oo][Ss]:*:*)
71 echo ${UNAME_MACHINE}-unknown-morphos
74 + echo ${UNAME_MACHINE}-unknown-aros
77 echo i370-ibm-openedition
79 diff -ruN binutils-2.21.1/intl/configure binutils-2.21.1.aros/intl/configure
80 --- binutils-2.21.1/intl/configure 2010-11-05 11:31:38.000000000 +0100
81 +++ binutils-2.21.1.aros/intl/configure 2011-06-27 09:39:00.000000000 +0200
86 +#if defined(__AROS__)
89 signal (SIGFPE, sigfpe_handler);
90 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
91 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
92 diff -ruN binutils-2.21.1/ld/configure.tgt binutils-2.21.1.aros/ld/configure.tgt
93 --- binutils-2.21.1/ld/configure.tgt 2011-04-01 14:03:54.000000000 +0200
94 +++ binutils-2.21.1.aros/ld/configure.tgt 2013-08-26 13:30:21.000000000 +0200
96 targ_extra_emuls="armelfb armelf armelf_linux"
97 targ_extra_libpath="armelf_linux"
99 +arm*-*-aros*) targ_emul=armelf_aros
100 + targ_extra_emuls=armelfb_aros
101 + targ_extra_libpath=$targ_extra_emuls
103 arm*-*-linux-*eabi) targ_emul=armelf_linux_eabi
104 targ_extra_emuls=armelfb_linux_eabi
105 targ_extra_libpath=$targ_extra_emuls
107 x86_64-*-elf*) targ_emul=elf_x86_64
108 targ_extra_emuls="elf_i386 elf_l1om"
110 +x86_64-*-aros*) targ_emul=elf_x86_64
111 + targ_extra_emuls=elf_i386
113 i[3-7]86-*-kaos*) targ_emul=elf_i386 ;;
114 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12])
117 m68k-hp-bsd*) targ_emul=hp300bsd ;;
118 m68*-motorola-sysv*) targ_emul=delta68 ;;
119 m68*-*-aout) targ_emul=m68kaout ;;
120 +m68*-*-aros) targ_emul=m68kelf ;;
121 m68*-*-coff) targ_emul=m68kcoff ;;
122 m68*-*-elf) targ_emul=m68kelf ;;
123 m68*-*-hpux*) targ_emul=hp3hpux ;;
125 powerpc-*-beos*) targ_emul=aixppc ;;
126 powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
127 powerpc-*-lynxos*) targ_emul=ppclynx ;;
128 +powerpc-*-aros*) targ_emul=elf32ppc ;;
129 rs6000-*-aix[5-9]*) targ_emul=aix5rs6 ;;
130 rs6000-*-aix*) targ_emul=aixrs6
132 diff -ruN binutils-2.21.1/ld/emulparams/armelf_aros.sh binutils-2.21.1.aros/ld/emulparams/armelf_aros.sh
133 --- binutils-2.21.1/ld/emulparams/armelf_aros.sh 1970-01-01 01:00:00.000000000 +0100
134 +++ binutils-2.21.1.aros/ld/emulparams/armelf_aros.sh 2012-06-28 13:50:52.000000000 +0200
136 +. ${srcdir}/emulparams/armelf_linux_eabi.sh
137 +# Remap R_ARM_TARGET2 to R_ARM_ABS32
139 diff -ruN binutils-2.21.1/ld/emulparams/armelfb_aros.sh binutils-2.21.1.aros/ld/emulparams/armelfb_aros.sh
140 --- binutils-2.21.1/ld/emulparams/armelfb_aros.sh 1970-01-01 01:00:00.000000000 +0100
141 +++ binutils-2.21.1.aros/ld/emulparams/armelfb_aros.sh 2012-06-28 13:50:52.000000000 +0200
143 +. ${srcdir}/emulparams/armelf_aros.sh
144 +OUTPUT_FORMAT="elf32-bigarm"
145 diff -ruN binutils-2.21.1/ld/Makefile.in binutils-2.21.1.aros/ld/Makefile.in
146 --- binutils-2.21.1/ld/Makefile.in 2011-03-16 09:37:30.000000000 +0100
147 +++ binutils-2.21.1.aros/ld/Makefile.in 2013-08-26 13:33:27.000000000 +0200
148 @@ -445,12 +445,14 @@
155 earmelf_linux_eabi.c \
161 earmelfb_linux_eabi.c \
163 @@ -1027,12 +1029,14 @@
164 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmaoutl.Po@am__quote@
165 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmcoff.Po@am__quote@
166 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf.Po@am__quote@
167 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_aros.Po@am__quote@
168 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_fbsd.Po@am__quote@
169 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux.Po@am__quote@
170 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux_eabi.Po@am__quote@
171 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd.Po@am__quote@
172 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_vxworks.Po@am__quote@
173 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb.Po@am__quote@
174 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_aros.Po@am__quote@
175 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_linux.Po@am__quote@
176 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_linux_eabi.Po@am__quote@
177 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_nbsd.Po@am__quote@
178 @@ -2114,6 +2118,12 @@
179 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
180 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
181 ${GENSCRIPTS} armelf_linux_eabi "$(tdir_armelf_linux_abi)"
182 +earmelf_aros.c: $(srcdir)/emulparams/armelf_aros.sh \
183 + $(srcdir)/emulparams/armelf_linux_eabi.sh \
184 + $(srcdir)/emulparams/armelf_linux.sh \
185 + $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
186 + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
187 + ${GENSCRIPTS} armelf_aros "$(tdir_armelf_aros)"
188 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
189 $(srcdir)/emulparams/armelf.sh \
190 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
191 @@ -2140,6 +2150,13 @@
192 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
193 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
194 ${GENSCRIPTS} armelfb_linux_eabi "$(tdir_armelfb_linux_abi)"
195 +earmelfb_aros.c: $(srcdir)/emulparams/armelfb_aros.sh \
196 + $(srcdir)/emulparams/armelf_aros.sh \
197 + $(srcdir)/emulparams/armelf_linux_eabi.sh \
198 + $(srcdir)/emulparams/armelf_linux.sh \
199 + $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
200 + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
201 + ${GENSCRIPTS} armelfb_aros "$(tdir_armelfb_aros)"
202 earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
203 $(srcdir)/emulparams/armelf_nbsd.sh \
204 $(srcdir)/emulparams/armelf.sh \