append modtype to generated makefiles
[AROS.git] / tools / crosstools / binutils-2.21.1-aros.diff
blobfe18a6458a549091f7e09d490c1e56e62686844e
1 diff -urN binutils-2.21.1.orig/bfd/config.bfd binutils-2.21.1/bfd/config.bfd
2 --- binutils-2.21.1.orig/bfd/config.bfd 2011-04-01 08:02:42.000000000 -0400
3 +++ binutils-2.21.1/bfd/config.bfd 2011-11-18 12:12:30.000000000 -0500
4 @@ -281,7 +281,7 @@
5 ;;
6 arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
7 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
8 - arm*-*-eabi* )
9 + arm*-*-eabi* | arm-*-aros)
10 targ_defvec=bfd_elf32_littlearm_vec
11 targ_selvecs=bfd_elf32_bigarm_vec
13 @@ -518,6 +518,8 @@
15 i[3-7]86-*-aros*)
16 targ_defvec=bfd_elf32_i386_vec
17 + targ_selvecs="bfd_elf64_x86_64_vec bfd_elf32_powerpc_vec"
18 + want64=true
20 i[3-7]86-*-chorus*)
21 targ_defvec=bfd_elf32_i386_vec
22 @@ -647,6 +649,11 @@
23 want64=true
24 targ_underscore=no
26 + x86_64-*-aros*)
27 + targ_defvec=bfd_elf64_x86_64_vec
28 + targ_selvecs="bfd_elf32_i386_vec bfd_elf32_powerpc_vec"
29 + want64=true
30 + ;;
31 #endif
32 i[3-7]86-*-lynxos*)
33 targ_defvec=bfd_elf32_i386_vec
34 @@ -802,7 +809,7 @@
35 targ_selvecs="cisco_core_big_vec ieee_vec"
36 targ_underscore=yes
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"
47 + powerpc-*-aros*)
48 + targ_defvec=bfd_elf32_powerpc_vec
49 + targ_selvecs="bfd_elf32_i386_vec bfd_elf64_x86_64_vec"
50 + want64=true
51 + ;;
53 s390-*-linux*)
54 targ_defvec=bfd_elf32_s390_vec
55 diff -urN binutils-2.21.1.orig/config.guess binutils-2.21.1/config.guess
56 --- binutils-2.21.1.orig/config.guess 2010-06-01 13:53:40.000000000 -0400
57 +++ binutils-2.21.1/config.guess 2011-06-27 03:39:00.000000000 -0400
58 @@ -289,6 +289,9 @@
59 *:[Mm]orph[Oo][Ss]:*:*)
60 echo ${UNAME_MACHINE}-unknown-morphos
61 exit ;;
62 + *:AROS:*:*)
63 + echo ${UNAME_MACHINE}-unknown-aros
64 + exit ;;
65 *:OS/390:*:*)
66 echo i370-ibm-openedition
67 exit ;;
68 diff -urN binutils-2.21.1.orig/intl/configure binutils-2.21.1/intl/configure
69 --- binutils-2.21.1.orig/intl/configure 2010-11-05 06:31:38.000000000 -0400
70 +++ binutils-2.21.1/intl/configure 2011-06-27 03:39:00.000000000 -0400
71 @@ -4606,6 +4606,9 @@
73 int main ()
75 +#if defined(__AROS__)
76 + exit (1);
77 +#endif
78 signal (SIGFPE, sigfpe_handler);
79 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
80 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
81 diff -urN binutils-2.21.1.orig/ld/configure.tgt binutils-2.21.1/ld/configure.tgt
82 --- binutils-2.21.1.orig/ld/configure.tgt 2011-04-01 08:03:54.000000000 -0400
83 +++ binutils-2.21.1/ld/configure.tgt 2011-11-18 12:13:44.000000000 -0500
84 @@ -79,6 +79,10 @@
85 targ_extra_emuls="armelfb armelf armelf_linux"
86 targ_extra_libpath="armelf_linux"
88 +arm*-*-aros*) targ_emul=armelf_linux_eabi
89 + targ_extra_emuls=armelfb_linux_eabi
90 + targ_extra_libpath=$targ_extra_emuls
91 + ;;
92 arm*-*-linux-*eabi) targ_emul=armelf_linux_eabi
93 targ_extra_emuls=armelfb_linux_eabi
94 targ_extra_libpath=$targ_extra_emuls
95 @@ -245,6 +249,9 @@
96 x86_64-*-elf*) targ_emul=elf_x86_64
97 targ_extra_emuls="elf_i386 elf_l1om"
99 +x86_64-*-aros*) targ_emul=elf_x86_64
100 + targ_extra_emuls=elf_i386
101 + ;;
102 i[3-7]86-*-kaos*) targ_emul=elf_i386 ;;
103 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12])
104 targ_emul=i386bsd ;;
105 @@ -336,6 +343,7 @@
106 m68k-hp-bsd*) targ_emul=hp300bsd ;;
107 m68*-motorola-sysv*) targ_emul=delta68 ;;
108 m68*-*-aout) targ_emul=m68kaout ;;
109 +m68*-*-aros) targ_emul=m68kelf ;;
110 m68*-*-coff) targ_emul=m68kcoff ;;
111 m68*-*-elf) targ_emul=m68kelf ;;
112 m68*-*-hpux*) targ_emul=hp3hpux ;;
113 @@ -504,6 +512,7 @@
114 powerpc-*-beos*) targ_emul=aixppc ;;
115 powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
116 powerpc-*-lynxos*) targ_emul=ppclynx ;;
117 +powerpc-*-aros*) targ_emul=elf32ppc ;;
118 rs6000-*-aix[5-9]*) targ_emul=aix5rs6 ;;
119 rs6000-*-aix*) targ_emul=aixrs6