patches/binutils/2.20/120-sh-targets.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 27 20:06:46 2009 +0100 (2009-10-27)
changeset 1614 3f76cdbceb6e
child 1621 60446d2e5660
permissions -rw-r--r--
config/binutils: add latest version 2.20

Also add patchset vampirised from Gentoo.
     1 r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines
     2 
     3 Likewise, binutils has no idea about any of these new targets either, so we 
     4 fix that up too.. now we're able to actually build a real toolchain for 
     5 sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more 
     6 inept targets than that one, really. Go look, I promise).
     7 
     8 --- binutils-2.16.90.0.2-dist/configure
     9 +++ binutils-2.16.90.0.2/configure
    10 @@ -1207,7 +1207,7 @@
    11    am33_2.0-*-linux*)
    12      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    13      ;;
    14 -  sh-*-linux*)
    15 +  sh*-*-linux*)
    16      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    17      ;;    
    18    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    19 @@ -1495,7 +1495,7 @@
    20    romp-*-*)
    21      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    22      ;;
    23 -  sh-*-* | sh64-*-*)
    24 +  sh*-*-* | sh64-*-*)
    25      case "${host}" in
    26        i[3456789]86-*-vsta) ;; # don't add gprof back in
    27        i[3456789]86-*-go32*) ;; # don't add gprof back in
    28 --- binutils-2.16.90.0.2-dist/configure.ac
    29 +++ binutils-2.16.90.0.2/configure.ac
    30 @@ -424,7 +424,7 @@
    31    am33_2.0-*-linux*)
    32      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    33      ;;
    34 -  sh-*-linux*)
    35 +  sh*-*-linux*)
    36      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    37      ;;    
    38    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    39 @@ -712,7 +712,7 @@
    40    romp-*-*)
    41      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    42      ;;
    43 -  sh-*-* | sh64-*-*)
    44 +  sh*-*-* | sh64-*-*)
    45      case "${host}" in
    46        i[[3456789]]86-*-vsta) ;; # don't add gprof back in
    47        i[[3456789]]86-*-go32*) ;; # don't add gprof back in