upgraded to binutils 2.21.1
[akaros.git] / tools / compilers / gcc-glibc / binutils-2.21.1-ros.patch
1 diff -ruN 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 05:02:42.000000000 -0700
3 +++ binutils-2.21.1/bfd/config.bfd      2011-10-24 17:08:29.000000000 -0700
4 @@ -519,6 +519,19 @@
5    i[3-7]86-*-aros*)
6      targ_defvec=bfd_elf32_i386_vec
7      ;;
8 +  i[3-7]86-*-ros*)
9 +    targ_defvec=bfd_elf32_i386_vec
10 +    ;;
11 +#ifdef BFD64
12 +  riscv*-*-ros*)
13 +    targ_defvec=bfd_elf64_littleriscv_vec
14 +    targ_selvecs="bfd_elf32_littleriscv_vec bfd_elf64_littleriscv_vec"
15 +    want64=true
16 +    ;;
17 +#endif
18 +  sparc-*-ros*) 
19 +    targ_defvec=bfd_elf32_sparc_vec
20 +    ;;
21    i[3-7]86-*-chorus*)
22      targ_defvec=bfd_elf32_i386_vec
23      ;;
24 diff -ruN binutils-2.21.1-orig/config.sub binutils-2.21.1/config.sub
25 --- binutils-2.21.1-orig/config.sub     2010-06-01 10:53:40.000000000 -0700
26 +++ binutils-2.21.1/config.sub  2011-10-24 17:00:52.000000000 -0700
27 @@ -1297,7 +1297,7 @@
28               | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
29               | -sym* | -kopensolaris* \
30               | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
31 -             | -aos* | -aros* \
32 +             | -aos* | -aros* | -ros* \
33               | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
34               | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
35               | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
36 diff -ruN binutils-2.21.1-orig/gas/configure.tgt binutils-2.21.1/gas/configure.tgt
37 --- binutils-2.21.1-orig/gas/configure.tgt      2011-04-01 05:02:42.000000000 -0700
38 +++ binutils-2.21.1/gas/configure.tgt   2011-10-24 17:06:31.000000000 -0700
39 @@ -180,6 +180,9 @@
40    i386-*-beos*)                                fmt=elf ;;
41    i386-*-coff)                         fmt=coff ;;
42    i386-*-elf)                          fmt=elf ;;
43 +  i386-*-ros)                          fmt=elf ;;
44 +  riscv-*-ros)                         fmt=elf ;;
45 +  sparc-*-ros)                         fmt=elf ;;
46    i386-*-kaos*)                                fmt=elf ;;
47    i386-*-bsd*)                         fmt=aout em=386bsd ;;
48    i386-*-netbsd0.8)                    fmt=aout em=386bsd ;;
49 diff -ruN binutils-2.21.1-orig/ld/configure.tgt binutils-2.21.1/ld/configure.tgt
50 --- binutils-2.21.1-orig/ld/configure.tgt       2011-04-01 05:03:54.000000000 -0700
51 +++ binutils-2.21.1/ld/configure.tgt    2011-10-24 17:07:38.000000000 -0700
52 @@ -242,6 +242,9 @@
53                         esac ;;
54  i[3-7]86-*-netware)    targ_emul=i386nw ;;
55  i[3-7]86-*-elf*)       targ_emul=elf_i386 ;;
56 +i[3-7]86-*-ros)        targ_emul=elf_i386 ;;
57 +riscv*-*-ros)          targ_emul=elf64lriscv targ_extra_emuls="elf32lriscv" ;;
58 +sparc*-*-ros)          targ_emul=elf32_sparc ;;
59  x86_64-*-elf*)         targ_emul=elf_x86_64
60                         targ_extra_emuls="elf_i386 elf_l1om"
61                         ;;