Fixed gcc build issue
[akaros.git] / tools / compilers / gcc-glibc / binutils-2.18-ros.patch
1 diff -ruN binutils-2.18/bfd/config.bfd binutils-2.18.new/bfd/config.bfd
2 --- binutils-2.18/bfd/config.bfd        2007-08-28 10:19:33.000000000 -0700
3 +++ binutils-2.18.new/bfd/config.bfd    2010-02-27 15:18:45.000000000 -0800
4 @@ -499,6 +499,9 @@
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    i[3-7]86-*-chorus*)
12      targ_defvec=bfd_elf32_i386_vec
13      ;;
14 @@ -1349,6 +1352,9 @@
15      targ_defvec=bfd_elf32_sparc_vec
16      targ_selvecs=sunos_big_vec
17      ;;
18 +  sparc-*-ros*) 
19 +    targ_defvec=bfd_elf32_sparc_vec
20 +    ;;
21  #ifdef BFD64
22    sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
23      targ_defvec=bfd_elf32_sparc_vec
24 diff -ruN binutils-2.18/config.sub binutils-2.18.new/config.sub
25 --- binutils-2.18/config.sub    2007-08-06 13:00:30.000000000 -0700
26 +++ binutils-2.18.new/config.sub        2010-02-27 15:18:45.000000000 -0800
27 @@ -1207,7 +1207,7 @@
28               | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
29               | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
30               | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
31 -             | -aos* \
32 +             | -aos* | -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.18/gas/configure.tgt binutils-2.18.new/gas/configure.tgt
37 --- binutils-2.18/gas/configure.tgt     2007-08-28 10:19:36.000000000 -0700
38 +++ binutils-2.18.new/gas/configure.tgt 2010-02-27 15:18:45.000000000 -0800
39 @@ -173,6 +173,7 @@
40    i386-*-beos*)                                fmt=elf ;;
41    i386-*-coff)                         fmt=coff ;;
42    i386-*-elf)                          fmt=elf ;;
43 +  i386-*-ros)                          fmt=elf ;;
44    i386-*-kaos*)                                fmt=elf ;;
45    i386-*-bsd*)                         fmt=aout em=386bsd ;;
46    i386-*-netbsd0.8)                    fmt=aout em=386bsd ;;
47 @@ -357,6 +358,7 @@
48    sparc-*-linux-*)                     fmt=elf em=linux ;;
49    sparc-fujitsu-none)                  fmt=aout ;;
50    sparc-*-elf)                         fmt=elf ;;
51 +  sparc-*-ros)                         fmt=elf ;;
52    sparc-*-sysv4*)                      fmt=elf ;;
53    sparc-*-solaris*)                    fmt=elf ;;
54    sparc-*-netbsdelf*)                  fmt=elf em=nbsd ;;
55 diff -ruN binutils-2.18/ld/configure.tgt binutils-2.18.new/ld/configure.tgt
56 --- binutils-2.18/ld/configure.tgt      2007-08-28 10:19:42.000000000 -0700
57 +++ binutils-2.18.new/ld/configure.tgt  2010-02-27 15:18:45.000000000 -0800
58 @@ -231,6 +231,7 @@
59                         esac ;;
60  i[3-7]86-*-netware)    targ_emul=i386nw ;;
61  i[3-7]86-*-elf*)       targ_emul=elf_i386 ;;
62 +i[3-7]86-*-ros*)       targ_emul=elf_i386 ;;
63  x86_64-*-elf*)         targ_emul=elf_x86_64
64                         targ_extra_emuls=elf_i386
65                         ;;
66 @@ -551,6 +552,7 @@
67  sparc*-*-aout)         targ_emul=sparcaout ;;
68  sparc*-*-coff)         targ_emul=coff_sparc ;;
69  sparc*-*-elf)          targ_emul=elf32_sparc ;;
70 +sparc*-*-ros)          targ_emul=elf32_sparc ;;
71  sparc*-*-sysv4*)       targ_emul=elf32_sparc ;;
72  sparc*-*-vxworks*)     targ_emul=elf32_sparc_vxworks ;;
73  sparc64-*-freebsd* | sparcv9-*-freebsd* | sparc64-*-kfreebsd*-gnu | sparcv9-*-kfreebsd*-gnu)
74 diff -ruN binutils-2.18/ld/emulparams/elf32_sparc.sh binutils-2.18.new/ld/emulparams/elf32_sparc.sh
75 --- binutils-2.18/ld/emulparams/elf32_sparc.sh  2007-08-12 12:00:07.000000000 -0700
76 +++ binutils-2.18.new/ld/emulparams/elf32_sparc.sh      2010-02-27 15:18:45.000000000 -0800
77 @@ -3,7 +3,7 @@
78  
79  SCRIPT_NAME=elf
80  OUTPUT_FORMAT="elf32-sparc"
81 -TEXT_START_ADDR=0x10000
82 +TEXT_START_ADDR=0x100000
83  MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
84  COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
85  ALIGNMENT=8