1 diff -ruN binutils-2.25/bfd/config.bfd binutils-2.25.aros/bfd/config.bfd
2 --- binutils-2.25/bfd/config.bfd 2014-10-14 08:32:02.000000000 +0100
3 +++ binutils-2.25.aros/bfd/config.bfd 2014-10-14 08:32:02.000000000 +0100
9 + aarch64-*-elf | aarch64-*-aros)
10 targ_defvec=aarch64_elf64_le_vec
11 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
15 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
16 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
18 + arm*-*-eabi* | arm-*-aros)
19 targ_defvec=arm_elf32_le_vec
20 targ_selvecs=arm_elf32_be_vec
25 targ_defvec=i386_elf32_vec
26 + targ_selvecs="x86_64_elf64_vec powerpc_elf32_vec"
30 targ_defvec=i386_elf32_vec
32 targ_defvec=x86_64_elf64_vec
36 + targ_defvec=x86_64_elf64_vec
37 + targ_selvecs="i386_elf32_vec powerpc_elf32_vec"
42 targ_defvec=i386_elf32_vec
44 targ_selvecs="core_cisco_be_vec ieee_vec"
47 - m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
48 + m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux* | m68*-*-aros)
49 targ_defvec=m68k_elf32_vec
50 targ_selvecs="m68k_coff_vec ieee_vec"
52 @@ -1257,6 +1264,11 @@
57 + targ_defvec=powerpc_elf32_vec
58 + targ_selvecs="i386_elf32_vec x86_64_elf64_vec"
62 targ_defvec=powerpc_elf32_fbsd_vec
63 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
64 diff -ruN binutils-2.25/binutils/configure binutils-2.25.aros/binutils/configure
65 --- binutils-2.25/binutils/configure 2014-12-23 14:22:06.000000000 +0000
66 +++ binutils-2.25.aros/binutils/configure 2014-10-14 08:32:02.000000000 +0100
67 @@ -12875,7 +12875,9 @@
68 $as_echo_n "checking for mbstate_t... " >&6; }
69 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71 +#if !defined(__AROS__)
77 diff -ruN binutils-2.25/binutils/sysdep.h binutils-2.25.aros/binutils/sysdep.h
78 --- binutils-2.25/binutils/sysdep.h 2014-10-14 08:32:02.000000000 +0100
79 +++ binutils-2.25.aros/binutils/sysdep.h 2014-10-14 08:32:02.000000000 +0100
83 #include <sys/types.h>
84 +#include <sys/stat.h>
88 diff -ruN binutils-2.25/config.guess binutils-2.25.aros/config.guess
89 --- binutils-2.25/config.guess 2014-10-14 08:32:02.000000000 +0100
90 +++ binutils-2.25.aros/config.guess 2014-10-14 08:32:02.000000000 +0100
92 *:[Mm]orph[Oo][Ss]:*:*)
93 echo ${UNAME_MACHINE}-unknown-morphos
96 + echo ${UNAME_MACHINE}-unknown-aros
99 echo i370-ibm-openedition
101 diff -ruN binutils-2.25/intl/configure binutils-2.25.aros/intl/configure
102 --- binutils-2.25/intl/configure 2013-11-04 15:33:39.000000000 +0000
103 +++ binutils-2.25.aros/intl/configure 2014-10-14 08:32:02.000000000 +0100
104 @@ -4606,6 +4606,9 @@
108 +#if defined(__AROS__)
111 signal (SIGFPE, sigfpe_handler);
112 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
113 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
114 diff -ruN binutils-2.25/ld/configure.tgt binutils-2.25.aros/ld/configure.tgt
115 --- binutils-2.25/ld/configure.tgt 2014-10-14 08:32:04.000000000 +0100
116 +++ binutils-2.25.aros/ld/configure.tgt 2014-10-14 08:32:02.000000000 +0100
119 aarch64_be-*-elf) targ_emul=aarch64elfb
120 targ_extra_emuls="aarch64elf aarch64elf32 aarch64elf32b armelfb armelf" ;;
121 +aarch64-*-aros*) targ_emul=aarch64elf_aros
122 + targ_extra_emuls=aarch64elfb_aros
123 + targ_extra_libpath=$targ_extra_emuls
125 aarch64-*-elf) targ_emul=aarch64elf
126 targ_extra_emuls="aarch64elf32 aarch64elf32b aarch64elfb armelf armelfb" ;;
127 aarch64_be-*-linux*) targ_emul=aarch64linuxb
129 targ_extra_emuls="armelfb armelf armelf_linux"
130 targ_extra_libpath="armelf_linux"
132 +arm*-*-aros*) targ_emul=armelf_aros
133 + targ_extra_emuls=armelfb_aros
134 + targ_extra_libpath=$targ_extra_emuls
136 arm*-*-linux-*eabi*) targ_emul=armelf_linux_eabi
137 targ_extra_emuls=armelfb_linux_eabi
138 targ_extra_libpath=$targ_extra_emuls
140 targ_extra_libpath="elf_i386 elf32_x86_64 elf_l1om elf_k1om"
141 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
143 +x86_64-*-aros*) targ_emul=elf_x86_64
144 + targ_extra_emuls=elf_i386
146 i[3-7]86-*-kaos*) targ_emul=elf_i386 ;;
147 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12])
150 m68k-hp-bsd*) targ_emul=hp300bsd ;;
151 m68*-motorola-sysv*) targ_emul=delta68 ;;
152 m68*-*-aout) targ_emul=m68kaout ;;
153 +m68*-*-aros) targ_emul=m68kelf ;;
154 m68*-*-coff) targ_emul=m68kcoff ;;
155 m68*-*-elf) targ_emul=m68kelf ;;
156 m68*-*-hpux*) targ_emul=hp3hpux ;;
158 powerpc-*-beos*) targ_emul=aixppc ;;
159 powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
160 powerpc-*-lynxos*) targ_emul=ppclynx ;;
161 +powerpc-*-aros*) targ_emul=elf32ppc ;;
162 rs6000-*-aix[5-9]*) targ_emul=aix5rs6 ;;
163 rs6000-*-aix*) targ_emul=aixrs6
165 diff -ruN binutils-2.25/ld/emulparams/aarch64elf_aros.sh binutils-2.25.aros/ld/emulparams/aarch64elf_aros.sh
166 --- binutils-2.25/ld/emulparams/aarch64elf_aros.sh 1970-01-01 01:00:00.000000000 +0100
167 +++ binutils-2.25.aros/ld/emulparams/aarch64elf_aros.sh 2016-04-01 07:58:51.909224114 +0100
169 +. ${srcdir}/emulparams/aarch64elf.sh
170 diff -ruN binutils-2.25/ld/emulparams/aarch64elfb_aros.sh binutils-2.25.aros/ld/emulparams/aarch64elfb_aros.sh
171 --- binutils-2.25/ld/emulparams/aarch64elfb_aros.sh 1970-01-01 01:00:00.000000000 +0100
172 +++ binutils-2.25.aros/ld/emulparams/aarch64elfb_aros.sh 2014-10-14 08:32:02.000000000 +0100
174 +. ${srcdir}/emulparams/aarch64elfb.sh
175 diff -ruN binutils-2.25/ld/emulparams/armelf_aros.sh binutils-2.25.aros/ld/emulparams/armelf_aros.sh
176 --- binutils-2.25/ld/emulparams/armelf_aros.sh 1970-01-01 01:00:00.000000000 +0100
177 +++ binutils-2.25.aros/ld/emulparams/armelf_aros.sh 2014-10-14 08:32:02.000000000 +0100
179 +. ${srcdir}/emulparams/armelf_linux_eabi.sh
180 diff -ruN binutils-2.25/ld/emulparams/armelfb_aros.sh binutils-2.25.aros/ld/emulparams/armelfb_aros.sh
181 --- binutils-2.25/ld/emulparams/armelfb_aros.sh 1970-01-01 01:00:00.000000000 +0100
182 +++ binutils-2.25.aros/ld/emulparams/armelfb_aros.sh 2014-10-14 08:32:02.000000000 +0100
184 +. ${srcdir}/emulparams/armelf_aros.sh
185 +OUTPUT_FORMAT="elf32-bigarm"
186 diff -ruN binutils-2.25/ld/Makefile.in binutils-2.25.aros/ld/Makefile.in
187 --- binutils-2.25/ld/Makefile.in 2014-10-14 08:32:04.000000000 +0100
188 +++ binutils-2.25.aros/ld/Makefile.in 2014-10-14 08:32:02.000000000 +0100
196 earmelf_linux_eabi.c \
204 earmelfb_linux_eabi.c \
209 + eaarch64elf_aros.c \
210 + eaarch64elfb_aros.c \
214 @@ -1046,6 +1050,8 @@
215 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64elf32.Po@am__quote@
216 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64elf32b.Po@am__quote@
217 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64elfb.Po@am__quote@
218 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64elf_aros.Po@am__quote@
219 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64elfb_aros.Po@am__quote@
220 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64linux.Po@am__quote@
221 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64linux32.Po@am__quote@
222 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eaarch64linux32b.Po@am__quote@
223 @@ -1063,6 +1069,7 @@
224 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmaoutl.Po@am__quote@
225 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmcoff.Po@am__quote@
226 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf.Po@am__quote@
227 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_aros.Po@am__quote@
228 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_fbsd.Po@am__quote@
229 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux.Po@am__quote@
230 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_linux_eabi.Po@am__quote@
231 @@ -1070,6 +1077,7 @@
232 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_nbsd.Po@am__quote@
233 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelf_vxworks.Po@am__quote@
234 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb.Po@am__quote@
235 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_aros.Po@am__quote@
236 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_fbsd.Po@am__quote@
237 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_linux.Po@am__quote@
238 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/earmelfb_linux_eabi.Po@am__quote@
239 @@ -2156,6 +2164,12 @@
240 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
241 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
243 +earmelf_aros.c: $(srcdir)/emulparams/armelf_aros.sh \
244 + $(srcdir)/emulparams/armelf_linux_eabi.sh \
245 + $(srcdir)/emulparams/armelf_linux.sh \
246 + $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
247 + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
249 earmelf_nacl.c: $(srcdir)/emulparams/armelf_nacl.sh \
250 $(srcdir)/emulparams/armelf_linux_eabi.sh \
251 $(srcdir)/emulparams/armelf_linux.sh \
252 @@ -2194,6 +2208,13 @@
253 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
254 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
256 +earmelfb_aros.c: $(srcdir)/emulparams/armelfb_aros.sh \
257 + $(srcdir)/emulparams/armelf_aros.sh \
258 + $(srcdir)/emulparams/armelf_linux_eabi.sh \
259 + $(srcdir)/emulparams/armelf_linux.sh \
260 + $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
261 + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
263 earmelfb_nacl.c: $(srcdir)/emulparams/armelfb_nacl.sh \
264 $(srcdir)/emulparams/armelf_nacl.sh \
265 $(srcdir)/emulparams/armelf_linux_eabi.sh \
266 @@ -3001,6 +3022,14 @@
267 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
268 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
270 +eaarch64elf_aros.c: $(srcdir)/emulparams/aarch64elf_aros.sh \
271 + $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
272 + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
274 +eaarch64elfb_aros.c: $(srcdir)/emulparams/aarch64elfb_aros.sh $(srcdir)/emulparams/aarch64elf_aros.sh \
275 + $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
276 + $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
278 eaarch64linux.c: $(srcdir)/emulparams/aarch64linux.sh \
279 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
280 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}