update AVR32 binutils patches
authorImre Kaloz <kaloz@openwrt.org>
Fri, 28 Dec 2007 18:26:50 +0000 (18:26 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Fri, 28 Dec 2007 18:26:50 +0000 (18:26 +0000)
SVN-Revision: 10006

toolchain/binutils/patches/2.17/500-avr32.patch
toolchain/binutils/patches/2.17/501-avr32-fix-pool-alignment.patch [new file with mode: 0644]
toolchain/binutils/patches/2.17/501-avr32-sreldyn-fix.patch [deleted file]
toolchain/binutils/patches/2.17/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch [deleted file]
toolchain/binutils/patches/2.17/503-avr32-fix-got-offset-init.patch [deleted file]

index 829e96da4780c510a004a214bd513703e6531cd8..7ece1c21f1c65b7e55390d21692b2d3d9f3a5d2e 100644 (file)
@@ -1,14 +1,13 @@
-Index: binutils-2.17/bfd/aclocal.m4
-===================================================================
---- binutils-2.17.orig/bfd/aclocal.m4  2007-06-28 09:19:34.137046832 +0200
-+++ binutils-2.17/bfd/aclocal.m4       2007-06-28 09:19:36.555679144 +0200
+diff -Nrup binutils-2.17/bfd/aclocal.m4 binutils-2.17.atmel.1.3.0/bfd/aclocal.m4
+--- binutils-2.17/bfd/aclocal.m4       2005-09-30 20:38:50.000000000 +0200
++++ binutils-2.17.atmel.1.3.0/bfd/aclocal.m4   2007-03-26 10:30:51.000000000 +0200
 @@ -1,4 +1,4 @@
 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  # 2005  Free Software Foundation, Inc.
-@@ -28,7 +28,7 @@
+@@ -28,7 +28,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api
  # Call AM_AUTOMAKE_VERSION so it can be traced.
  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
@@ -17,11 +16,10 @@ Index: binutils-2.17/bfd/aclocal.m4
  
  # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  
-Index: binutils-2.17/bfd/archures.c
-===================================================================
---- binutils-2.17.orig/bfd/archures.c  2007-06-28 09:19:34.142046072 +0200
-+++ binutils-2.17/bfd/archures.c       2007-06-28 09:19:36.556678992 +0200
-@@ -334,6 +334,9 @@
+diff -Nrup binutils-2.17/bfd/archures.c binutils-2.17.atmel.1.3.0/bfd/archures.c
+--- binutils-2.17/bfd/archures.c       2006-03-06 14:42:03.000000000 +0100
++++ binutils-2.17.atmel.1.3.0/bfd/archures.c   2007-03-26 10:20:30.000000000 +0200
+@@ -334,6 +334,9 @@ DESCRIPTION
  .#define bfd_mach_avr3                3
  .#define bfd_mach_avr4                4
  .#define bfd_mach_avr5                5
@@ -31,7 +29,7 @@ Index: binutils-2.17/bfd/archures.c
  .  bfd_arch_bfin,        {* ADI Blackfin *}
  .#define bfd_mach_bfin          1
  .  bfd_arch_cr16c,       {* National Semiconductor CompactRISC. *}
-@@ -423,6 +426,7 @@
+@@ -423,6 +426,7 @@ extern const bfd_arch_info_type bfd_alph
  extern const bfd_arch_info_type bfd_arc_arch;
  extern const bfd_arch_info_type bfd_arm_arch;
  extern const bfd_arch_info_type bfd_avr_arch;
@@ -39,7 +37,7 @@ Index: binutils-2.17/bfd/archures.c
  extern const bfd_arch_info_type bfd_bfin_arch;
  extern const bfd_arch_info_type bfd_cr16c_arch;
  extern const bfd_arch_info_type bfd_cris_arch;
-@@ -490,6 +494,7 @@
+@@ -490,6 +494,7 @@ static const bfd_arch_info_type * const 
      &bfd_arc_arch,
      &bfd_arm_arch,
      &bfd_avr_arch,
@@ -47,11 +45,10 @@ Index: binutils-2.17/bfd/archures.c
      &bfd_bfin_arch,
      &bfd_cr16c_arch,
      &bfd_cris_arch,
-Index: binutils-2.17/bfd/bfd-in2.h
-===================================================================
---- binutils-2.17.orig/bfd/bfd-in2.h   2007-06-28 09:19:34.149045008 +0200
-+++ binutils-2.17/bfd/bfd-in2.h        2007-06-28 09:19:36.558678688 +0200
-@@ -1931,6 +1931,9 @@
+diff -Nrup binutils-2.17/bfd/bfd-in2.h binutils-2.17.atmel.1.3.0/bfd/bfd-in2.h
+--- binutils-2.17/bfd/bfd-in2.h        2006-03-26 01:38:42.000000000 +0100
++++ binutils-2.17.atmel.1.3.0/bfd/bfd-in2.h    2007-03-26 10:33:41.000000000 +0200
+@@ -1931,6 +1931,9 @@ enum bfd_architecture
  #define bfd_mach_avr3          3
  #define bfd_mach_avr4          4
  #define bfd_mach_avr5          5
@@ -61,7 +58,7 @@ Index: binutils-2.17/bfd/bfd-in2.h
    bfd_arch_bfin,        /* ADI Blackfin */
  #define bfd_mach_bfin          1
    bfd_arch_cr16c,       /* National Semiconductor CompactRISC. */
-@@ -3577,6 +3580,87 @@
+@@ -3577,6 +3580,87 @@ instructions  */
  instructions  */
    BFD_RELOC_AVR_6_ADIW,
  
@@ -149,11 +146,10 @@ Index: binutils-2.17/bfd/bfd-in2.h
  /* Direct 12 bit.  */
    BFD_RELOC_390_12,
  
-Index: binutils-2.17/bfd/config.bfd
-===================================================================
---- binutils-2.17.orig/bfd/config.bfd  2007-06-28 09:19:34.154044248 +0200
-+++ binutils-2.17/bfd/config.bfd       2007-06-28 09:19:36.558678688 +0200
-@@ -317,6 +317,10 @@
+diff -Nrup binutils-2.17/bfd/config.bfd binutils-2.17.atmel.1.3.0/bfd/config.bfd
+--- binutils-2.17/bfd/config.bfd       2006-04-05 14:41:57.000000000 +0200
++++ binutils-2.17.atmel.1.3.0/bfd/config.bfd   2007-03-26 10:20:30.000000000 +0200
+@@ -317,6 +317,10 @@ case "${targ}" in
      targ_underscore=yes
      ;;
  
@@ -164,10 +160,9 @@ Index: binutils-2.17/bfd/config.bfd
    c30-*-*aout* | tic30-*-*aout*)
      targ_defvec=tic30_aout_vec
      ;;
-Index: binutils-2.17/bfd/config.in
-===================================================================
---- binutils-2.17.orig/bfd/config.in   2007-06-28 09:19:34.159043488 +0200
-+++ binutils-2.17/bfd/config.in        2007-06-28 09:19:36.559678536 +0200
+diff -Nrup binutils-2.17/bfd/config.in binutils-2.17.atmel.1.3.0/bfd/config.in
+--- binutils-2.17/bfd/config.in        2005-11-03 17:06:10.000000000 +0100
++++ binutils-2.17.atmel.1.3.0/bfd/config.in    2007-03-26 10:30:55.000000000 +0200
 @@ -313,18 +313,18 @@
  /* Define to the version of this package. */
  #undef PACKAGE_VERSION
@@ -202,10 +197,9 @@ Index: binutils-2.17/bfd/config.in
 -/* Define to `unsigned' if <sys/types.h> does not define. */
 +/* Define to `unsigned int' if <sys/types.h> does not define. */
  #undef size_t
-Index: binutils-2.17/bfd/configure
-===================================================================
---- binutils-2.17.orig/bfd/configure   2007-06-28 09:19:35.023912008 +0200
-+++ binutils-2.17/bfd/configure        2007-06-28 09:19:36.575676104 +0200
+diff -Nrup binutils-2.17/bfd/configure binutils-2.17.atmel.1.3.0/bfd/configure
+--- binutils-2.17/bfd/configure        2006-06-23 20:17:03.000000000 +0200
++++ binutils-2.17.atmel.1.3.0/bfd/configure    2007-03-26 10:30:54.000000000 +0200
 @@ -1,25 +1,54 @@
  #! /bin/sh
  # Guess values for system-dependent variables and create Makefiles.
@@ -267,7 +261,7 @@ Index: binutils-2.17/bfd/configure
  
  # Support unset when possible.
  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-@@ -29,8 +58,43 @@
+@@ -29,8 +58,43 @@ else
  fi
  
  
@@ -312,7 +306,7 @@ Index: binutils-2.17/bfd/configure
  PS1='$ '
  PS2='> '
  PS4='+ '
-@@ -44,18 +108,19 @@
+@@ -44,18 +108,19 @@ do
    if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
      eval $as_var=C; export $as_var
    else
@@ -335,7 +329,7 @@ Index: binutils-2.17/bfd/configure
    as_basename=basename
  else
    as_basename=false
-@@ -63,157 +128,388 @@
+@@ -63,157 +128,388 @@ fi
  
  
  # Name of the executable.
@@ -822,7 +816,7 @@ Index: binutils-2.17/bfd/configure
  
  if mkdir -p . 2>/dev/null; then
    as_mkdir_p=:
-@@ -222,7 +518,28 @@
+@@ -222,7 +518,28 @@ else
    as_mkdir_p=false
  fi
  
@@ -852,7 +846,7 @@ Index: binutils-2.17/bfd/configure
  
  # Sed expression to map a string onto a valid CPP name.
  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-@@ -231,39 +548,27 @@
+@@ -231,39 +548,27 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  
  
@@ -895,7 +889,7 @@ Index: binutils-2.17/bfd/configure
  # Identity of this package.
  PACKAGE_NAME=
  PACKAGE_TARNAME=
-@@ -275,42 +580,199 @@
+@@ -275,42 +580,199 @@ ac_unique_file="libbfd.c"
  # Factoring default headers for most tests.
  ac_includes_default="\
  #include <stdio.h>
@@ -1109,7 +1103,7 @@ Index: binutils-2.17/bfd/configure
  
  # Initialize some variables set by options.
  ac_init_help=
-@@ -337,34 +799,48 @@
+@@ -337,34 +799,48 @@ x_libraries=NONE
  # and all the variables that are supposed to be based on exec_prefix
  # by default will actually change.
  # Use braces instead of parens because sh, perl, etc. also accept them.
@@ -1165,7 +1159,7 @@ Index: binutils-2.17/bfd/configure
  
    -bindir | --bindir | --bindi | --bind | --bin | --bi)
      ac_prev=bindir ;;
-@@ -386,33 +862,45 @@
+@@ -386,33 +862,45 @@ do
    --config-cache | -C)
      cache_file=config.cache ;;
  
@@ -1224,7 +1218,7 @@ Index: binutils-2.17/bfd/configure
  
    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
-@@ -439,6 +927,12 @@
+@@ -439,6 +927,12 @@ do
    -host=* | --host=* | --hos=* | --ho=*)
      host_alias=$ac_optarg ;;
  
@@ -1237,7 +1231,7 @@ Index: binutils-2.17/bfd/configure
    -includedir | --includedir | --includedi | --included | --include \
    | --includ | --inclu | --incl | --inc)
      ac_prev=includedir ;;
-@@ -463,13 +957,16 @@
+@@ -463,13 +957,16 @@ do
    | --libexe=* | --libex=* | --libe=*)
      libexecdir=$ac_optarg ;;
  
@@ -1258,7 +1252,7 @@ Index: binutils-2.17/bfd/configure
      localstatedir=$ac_optarg ;;
  
    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
-@@ -534,6 +1031,16 @@
+@@ -534,6 +1031,16 @@ do
    | --progr-tra=* | --program-tr=* | --program-t=*)
      program_transform_name=$ac_optarg ;;
  
@@ -1275,7 +1269,7 @@ Index: binutils-2.17/bfd/configure
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      silent=yes ;;
-@@ -586,24 +1093,20 @@
+@@ -586,24 +1093,20 @@ do
    -with-* | --with-*)
      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
      # Reject names that are not valid shell variable names.
@@ -1306,7 +1300,7 @@ Index: binutils-2.17/bfd/configure
  
    --x)
      # Obsolete; use --with-x.
-@@ -634,8 +1137,7 @@
+@@ -634,8 +1137,7 @@ Try \`$0 --help' for more information." 
      expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     { (exit 1); exit 1; }; }
@@ -1316,7 +1310,7 @@ Index: binutils-2.17/bfd/configure
      export $ac_envvar ;;
  
    *)
-@@ -655,27 +1157,19 @@
+@@ -655,27 +1157,19 @@ if test -n "$ac_prev"; then
     { (exit 1); exit 1; }; }
  fi
  
@@ -1354,7 +1348,7 @@ Index: binutils-2.17/bfd/configure
  done
  
  # There might be people who depend on the old broken behavior: `$host'
-@@ -702,74 +1196,76 @@
+@@ -702,74 +1196,76 @@ test -n "$host_alias" && ac_tool_prefix=
  test "$silent" = yes && exec 6>/dev/null
  
  
@@ -1486,7 +1480,7 @@ Index: binutils-2.17/bfd/configure
  
  #
  # Report the --help message.
-@@ -798,9 +1294,6 @@
+@@ -798,9 +1294,6 @@ Configuration:
    -n, --no-create         do not create output files
        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  
@@ -1496,7 +1490,7 @@ Index: binutils-2.17/bfd/configure
  Installation directories:
    --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
-@@ -818,15 +1311,22 @@
+@@ -818,15 +1311,22 @@ Fine tuning of the installation director
    --bindir=DIR           user executables [EPREFIX/bin]
    --sbindir=DIR          system admin executables [EPREFIX/sbin]
    --libexecdir=DIR       program executables [EPREFIX/libexec]
@@ -1522,7 +1516,7 @@ Index: binutils-2.17/bfd/configure
  _ACEOF
  
    cat <<\_ACEOF
-@@ -880,126 +1380,95 @@
+@@ -880,126 +1380,95 @@ Some influential environment variables:
    CFLAGS      C compiler flags
    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                nonstandard directory <lib dir>
@@ -1700,7 +1694,7 @@ Index: binutils-2.17/bfd/configure
  {
  cat <<_ASUNAME
  ## --------- ##
-@@ -1018,7 +1487,7 @@
+@@ -1018,7 +1487,7 @@ uname -v = `(uname -v) 2>/dev/null || ec
  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
@@ -1709,7 +1703,7 @@ Index: binutils-2.17/bfd/configure
  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
-@@ -1032,6 +1501,7 @@
+@@ -1032,6 +1501,7 @@ do
    test -z "$as_dir" && as_dir=.
    echo "PATH: $as_dir"
  done
@@ -1717,7 +1711,7 @@ Index: binutils-2.17/bfd/configure
  
  } >&5
  
-@@ -1053,7 +1523,6 @@
+@@ -1053,7 +1523,6 @@ _ACEOF
  ac_configure_args=
  ac_configure_args0=
  ac_configure_args1=
@@ -1725,7 +1719,7 @@ Index: binutils-2.17/bfd/configure
  ac_must_keep_next=false
  for ac_pass in 1 2
  do
-@@ -1064,7 +1533,7 @@
+@@ -1064,7 +1533,7 @@ do
      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
      | -silent | --silent | --silen | --sile | --sil)
        continue ;;
@@ -1734,7 +1728,7 @@ Index: binutils-2.17/bfd/configure
        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
      esac
      case $ac_pass in
-@@ -1086,9 +1555,7 @@
+@@ -1086,9 +1555,7 @@ do
          -* ) ac_must_keep_next=true ;;
        esac
        fi
@@ -1745,7 +1739,7 @@ Index: binutils-2.17/bfd/configure
        ;;
      esac
    done
-@@ -1099,8 +1566,8 @@
+@@ -1099,8 +1566,8 @@ $as_unset ac_configure_args1 || test "${
  # When interrupted or exit'd, cleanup temporary files, and complete
  # config.log.  We remove comments because anyway the quotes in there
  # would cause problems or look ugly.
@@ -1756,7 +1750,7 @@ Index: binutils-2.17/bfd/configure
  trap 'exit_status=$?
    # Save into config.log some information that might help in debugging.
    {
-@@ -1113,20 +1580,34 @@
+@@ -1113,20 +1580,34 @@ trap 'exit_status=$?
  _ASBOX
      echo
      # The following way of writing the cache mishandles newlines in values,
@@ -1801,7 +1795,7 @@ Index: binutils-2.17/bfd/configure
      echo
  
      cat <<\_ASBOX
-@@ -1137,22 +1618,28 @@
+@@ -1137,22 +1618,28 @@ _ASBOX
      echo
      for ac_var in $ac_subst_vars
      do
@@ -1837,7 +1831,7 @@ Index: binutils-2.17/bfd/configure
        done | sort
        echo
      fi
-@@ -1164,26 +1651,24 @@
+@@ -1164,26 +1651,24 @@ _ASBOX
  ## ----------- ##
  _ASBOX
        echo
@@ -1869,7 +1863,7 @@ Index: binutils-2.17/bfd/configure
  
  # Predefined preprocessor variables.
  
-@@ -1214,14 +1699,17 @@
+@@ -1214,14 +1699,17 @@ _ACEOF
  
  # Let the site file select an alternate cache file if it wants to.
  # Prefer explicitly selected file to automatically selected ones.
@@ -1894,7 +1888,7 @@ Index: binutils-2.17/bfd/configure
    if test -r "$ac_site_file"; then
      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  echo "$as_me: loading site script $ac_site_file" >&6;}
-@@ -1237,8 +1725,8 @@
+@@ -1237,8 +1725,8 @@ if test -r "$cache_file"; then
      { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  echo "$as_me: loading cache $cache_file" >&6;}
      case $cache_file in
@@ -1905,7 +1899,7 @@ Index: binutils-2.17/bfd/configure
      esac
    fi
  else
-@@ -1250,12 +1738,11 @@
+@@ -1250,12 +1738,11 @@ fi
  # Check that the precious variables saved in the cache have kept the same
  # value.
  ac_cache_corrupted=false
@@ -1921,7 +1915,7 @@ Index: binutils-2.17/bfd/configure
    case $ac_old_set,$ac_new_set in
      set,)
        { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-@@ -1280,8 +1767,7 @@
+@@ -1280,8 +1767,7 @@ echo "$as_me:   current value: $ac_new_v
    # Pass precious variables to config.status.
    if test "$ac_new_set" = set; then
      case $ac_new_val in
@@ -1931,7 +1925,7 @@ Index: binutils-2.17/bfd/configure
      *) ac_arg=$ac_var=$ac_new_val ;;
      esac
      case " $ac_configure_args " in
-@@ -1298,12 +1784,6 @@
+@@ -1298,12 +1784,6 @@ echo "$as_me: error: run \`make distclea
     { (exit 1); exit 1; }; }
  fi
  
@@ -1944,7 +1938,7 @@ Index: binutils-2.17/bfd/configure
  
  
  
-@@ -1320,109 +1800,164 @@
+@@ -1320,109 +1800,164 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
  
  
@@ -2161,7 +2155,7 @@ Index: binutils-2.17/bfd/configure
  
  
  # The aliases save the names the user supplied, while $host etc.
-@@ -1439,8 +1974,8 @@
+@@ -1439,8 +1974,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  set dummy ${ac_tool_prefix}gcc; ac_word=$2
@@ -2172,7 +2166,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1453,32 +1988,34 @@
+@@ -1453,32 +1988,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -2214,7 +2208,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1491,36 +2028,51 @@
+@@ -1491,36 +2028,51 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -2276,7 +2270,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1533,74 +2085,34 @@
+@@ -1533,74 +2085,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -2360,7 +2354,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1614,7 +2126,7 @@
+@@ -1614,7 +2126,7 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -2369,7 +2363,7 @@ Index: binutils-2.17/bfd/configure
      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
         ac_prog_rejected=yes
         continue
-@@ -1625,6 +2137,7 @@
+@@ -1625,6 +2137,7 @@ do
    fi
  done
  done
@@ -2377,7 +2371,7 @@ Index: binutils-2.17/bfd/configure
  
  if test $ac_prog_rejected = yes; then
    # We found a bogon in the path, so make sure we never use it.
-@@ -1642,22 +2155,23 @@
+@@ -1642,22 +2155,23 @@ fi
  fi
  CC=$ac_cv_prog_CC
  if test -n "$CC"; then
@@ -2408,7 +2402,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1670,36 +2184,38 @@
+@@ -1670,36 +2184,38 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -2455,7 +2449,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1712,29 +2228,45 @@
+@@ -1712,29 +2228,45 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -2507,7 +2501,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
  fi
-@@ -1747,21 +2279,35 @@
+@@ -1747,21 +2279,35 @@ See \`config.log' for more details." >&2
     { (exit 1); exit 1; }; }
  
  # Provide some information about the compiler.
@@ -2551,7 +2545,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }
-@@ -1786,47 +2332,77 @@
+@@ -1786,47 +2332,77 @@ ac_clean_files="$ac_clean_files a.out a.
  # Try to create an executable without -o first, disregard a.out.
  # It will help us diagnose broken compilers, and finding out an intuition
  # of exeext.
@@ -2651,7 +2645,7 @@ Index: binutils-2.17/bfd/configure
    echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
  
-@@ -1838,19 +2414,21 @@
+@@ -1838,19 +2414,21 @@ See \`config.log' for more details." >&2
  fi
  
  ac_exeext=$ac_cv_exeext
@@ -2680,7 +2674,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -1869,22 +2447,27 @@
+@@ -1869,22 +2447,27 @@ See \`config.log' for more details." >&2
      fi
    fi
  fi
@@ -2720,7 +2714,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; then
-@@ -1895,9 +2478,8 @@
+@@ -1895,9 +2478,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
  for ac_file in conftest.exe conftest conftest.*; do
    test -f "$ac_file" || continue
    case $ac_file in
@@ -2731,7 +2725,7 @@ Index: binutils-2.17/bfd/configure
          break;;
      * ) break;;
    esac
-@@ -1911,14 +2493,14 @@
+@@ -1911,14 +2493,14 @@ See \`config.log' for more details." >&2
  fi
  
  rm -f conftest$ac_cv_exeext
@@ -2750,7 +2744,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_objext+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1938,14 +2520,20 @@
+@@ -1938,14 +2520,20 @@ main ()
  }
  _ACEOF
  rm -f conftest.o conftest.obj
@@ -2775,7 +2769,7 @@ Index: binutils-2.17/bfd/configure
      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
         break;;
    esac
-@@ -1963,12 +2551,12 @@
+@@ -1963,12 +2551,12 @@ fi
  
  rm -f conftest.$ac_cv_objext conftest.$ac_ext
  fi
@@ -2792,7 +2786,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_c_compiler_gnu+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -1991,50 +2579,49 @@
+@@ -1991,50 +2579,49 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -2866,7 +2860,7 @@ Index: binutils-2.17/bfd/configure
  /* confdefs.h.  */
  _ACEOF
  cat confdefs.h >>conftest.$ac_ext
-@@ -2050,38 +2637,118 @@
+@@ -2050,38 +2637,118 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -3001,7 +2995,7 @@ Index: binutils-2.17/bfd/configure
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS=$ac_save_CFLAGS
  elif test $ac_cv_prog_cc_g = yes; then
-@@ -2097,12 +2764,12 @@
+@@ -2097,12 +2764,12 @@ else
      CFLAGS=
    fi
  fi
@@ -3018,7 +3012,7 @@ Index: binutils-2.17/bfd/configure
  ac_save_CC=$CC
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
-@@ -2136,12 +2803,17 @@
+@@ -2136,12 +2803,17 @@ static char *f (char * (*g) (char **, in
  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     function prototypes and stuff, but not '\xHH' hex character constants.
     These don't provoke an error unfortunately, instead are silently treated
@@ -3038,7 +3032,7 @@ Index: binutils-2.17/bfd/configure
  int test (int i, double x);
  struct s1 {int (*f) (int a);};
  struct s2 {int (*f) (double a);};
-@@ -2156,335 +2828,144 @@
+@@ -2156,335 +2828,144 @@ return f (e, argv, 0) != argv[0]  ||  f 
    return 0;
  }
  _ACEOF
@@ -3461,7 +3455,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  
-@@ -2503,8 +2984,8 @@
+@@ -2503,8 +2984,8 @@ am__api_version="1.9"
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # OS/2's system install, which has a completely different semantic
  # ./install, which can be erroneously created by make from ./install.sh.
@@ -3472,7 +3466,7 @@ Index: binutils-2.17/bfd/configure
  if test -z "$INSTALL"; then
  if test "${ac_cv_path_install+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
-@@ -2526,7 +3007,7 @@
+@@ -2526,7 +3007,7 @@ case $as_dir/ in
      # by default.
      for ac_prog in ginstall scoinst install; do
        for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3481,7 +3475,7 @@ Index: binutils-2.17/bfd/configure
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
-@@ -2545,21 +3026,22 @@
+@@ -2545,21 +3026,22 @@ case $as_dir/ in
      ;;
  esac
  done
@@ -3509,7 +3503,7 @@ Index: binutils-2.17/bfd/configure
  
  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  # It thinks the first close brace ends the variable substitution.
-@@ -2569,8 +3051,8 @@
+@@ -2569,8 +3051,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
  
  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  
@@ -3520,7 +3514,7 @@ Index: binutils-2.17/bfd/configure
  # Just in case
  sleep 1
  echo timestamp > conftest.file
-@@ -2612,20 +3094,20 @@
+@@ -2612,20 +3094,20 @@ echo "$as_me: error: newly created file 
  Check your system clock" >&2;}
     { (exit 1); exit 1; }; }
  fi
@@ -3546,7 +3540,7 @@ Index: binutils-2.17/bfd/configure
  
  # expand $ac_aux_dir to an absolute path
  am_aux_dir=`cd $ac_aux_dir && pwd`
-@@ -2677,8 +3159,8 @@
+@@ -2677,8 +3159,8 @@ for ac_prog in gawk mawk nawk awk
  do
    # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
@@ -3557,7 +3551,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_AWK+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -2691,54 +3173,57 @@
+@@ -2691,54 +3173,57 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3636,7 +3630,7 @@ Index: binutils-2.17/bfd/configure
    SET_MAKE="MAKE=${MAKE-make}"
  fi
  
-@@ -2753,7 +3238,7 @@
+@@ -2753,7 +3238,7 @@ rmdir .tst 2>/dev/null
  
  DEPDIR="${am__leading_dot}deps"
  
@@ -3645,7 +3639,7 @@ Index: binutils-2.17/bfd/configure
  
  
  am_make=${MAKE-make}
-@@ -2763,8 +3248,8 @@
+@@ -2763,8 +3248,8 @@ am__doit:
  .PHONY: am__doit
  END
  # If we don't find an include directive, just comment out the code.
@@ -3656,7 +3650,7 @@ Index: binutils-2.17/bfd/configure
  am__include="#"
  am__quote=
  _am_result=none
-@@ -2791,15 +3276,15 @@
+@@ -2791,15 +3276,15 @@ if test "$am__include" = "#"; then
  fi
  
  
@@ -3677,7 +3671,7 @@ Index: binutils-2.17/bfd/configure
  if test "x$enable_dependency_tracking" != xno; then
    am_depcomp="$ac_aux_dir/depcomp"
    AMDEPBACKSLASH='\'
-@@ -2836,7 +3321,7 @@
+@@ -2836,7 +3321,7 @@ fi
  
  # Define the identity of the package.
   PACKAGE=bfd
@@ -3686,7 +3680,7 @@ Index: binutils-2.17/bfd/configure
  
  
  cat >>confdefs.h <<_ACEOF
-@@ -2874,8 +3359,8 @@
+@@ -2874,8 +3359,8 @@ if test "$cross_compiling" != no; then
    if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  set dummy ${ac_tool_prefix}strip; ac_word=$2
@@ -3697,7 +3691,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_STRIP+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -2888,32 +3373,34 @@
+@@ -2888,32 +3373,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3739,7 +3733,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -2926,27 +3413,41 @@
+@@ -2926,27 +3413,41 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3788,7 +3782,7 @@ Index: binutils-2.17/bfd/configure
  else
    STRIP="$ac_cv_prog_STRIP"
  fi
-@@ -2967,8 +3468,8 @@
+@@ -2967,8 +3468,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
  
  depcc="$CC"   am_compiler_list=
  
@@ -3799,7 +3793,7 @@ Index: binutils-2.17/bfd/configure
  if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3057,8 +3558,8 @@
+@@ -3057,8 +3558,8 @@ else
  fi
  
  fi
@@ -3810,7 +3804,7 @@ Index: binutils-2.17/bfd/configure
  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  
  
-@@ -3079,8 +3580,8 @@
+@@ -3079,8 +3580,8 @@ fi
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  set dummy ${ac_tool_prefix}ar; ac_word=$2
@@ -3821,7 +3815,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_AR+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3093,32 +3594,34 @@
+@@ -3093,32 +3594,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3863,7 +3857,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3131,26 +3634,41 @@
+@@ -3131,26 +3634,41 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3911,7 +3905,7 @@ Index: binutils-2.17/bfd/configure
  else
    AR="$ac_cv_prog_AR"
  fi
-@@ -3158,8 +3676,8 @@
+@@ -3158,8 +3676,8 @@ fi
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -3922,7 +3916,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_RANLIB+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3172,32 +3690,34 @@
+@@ -3172,32 +3690,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -3964,7 +3958,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3210,36 +3730,49 @@
+@@ -3210,36 +3730,49 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4024,7 +4018,7 @@ Index: binutils-2.17/bfd/configure
  case $enableval in
  yes) enable_shared=yes ;;
  no) enable_shared=no ;;
-@@ -3257,12 +3790,12 @@
+@@ -3257,12 +3790,12 @@ no) enable_shared=no ;;
  esac
  else
    enable_shared=no
@@ -4041,7 +4035,7 @@ Index: binutils-2.17/bfd/configure
  case $enableval in
  yes) enable_static=yes ;;
  no) enable_static=no ;;
-@@ -3280,11 +3813,11 @@
+@@ -3280,11 +3813,11 @@ no) enable_static=no ;;
  esac
  else
    enable_static=yes
@@ -4057,7 +4051,7 @@ Index: binutils-2.17/bfd/configure
  case $enableval in
  yes) enable_fast_install=yes ;;
  no) enable_fast_install=no ;;
-@@ -3302,20 +3835,21 @@
+@@ -3302,20 +3835,21 @@ no) enable_fast_install=no ;;
  esac
  else
    enable_fast_install=yes
@@ -4086,7 +4080,7 @@ Index: binutils-2.17/bfd/configure
    case $host in
    *-*-mingw*)
      # gcc leaves a trailing carriage return which upsets mingw
-@@ -3344,11 +3878,11 @@
+@@ -3344,11 +3878,11 @@ echo $ECHO_N "checking for ld used by GC
      ;;
    esac
  elif test "$with_gnu_ld" = yes; then
@@ -4102,7 +4096,7 @@ Index: binutils-2.17/bfd/configure
  fi
  if test "${lt_cv_path_LD+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
-@@ -3377,17 +3911,17 @@
+@@ -3377,17 +3911,17 @@ fi
  
  LD="$lt_cv_path_LD"
  if test -n "$LD"; then
@@ -4126,7 +4120,7 @@ Index: binutils-2.17/bfd/configure
  if test "${lt_cv_prog_gnu_ld+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3398,25 +3932,25 @@
+@@ -3398,25 +3932,25 @@ else
    lt_cv_prog_gnu_ld=no
  fi
  fi
@@ -4160,7 +4154,7 @@ Index: binutils-2.17/bfd/configure
  if test "${lt_cv_path_NM+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3451,22 +3985,22 @@
+@@ -3451,22 +3985,22 @@ fi
  fi
  
  NM="$lt_cv_path_NM"
@@ -4193,7 +4187,7 @@ Index: binutils-2.17/bfd/configure
  if test "${lt_cv_deplibs_check_method+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3628,8 +4162,8 @@
+@@ -3628,8 +4162,8 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  esac
  
  fi
@@ -4204,7 +4198,7 @@ Index: binutils-2.17/bfd/configure
  file_magic_cmd=$lt_cv_file_magic_cmd
  deplibs_check_method=$lt_cv_deplibs_check_method
  
-@@ -3639,8 +4173,8 @@
+@@ -3639,8 +4173,8 @@ deplibs_check_method=$lt_cv_deplibs_chec
  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  
  # find the maximum length of command line arguments
@@ -4215,7 +4209,7 @@ Index: binutils-2.17/bfd/configure
  if test "${lt_cv_sys_max_cmd_len+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3691,11 +4225,11 @@
+@@ -3691,11 +4225,11 @@ else
  fi
  
  if test -n "$lt_cv_sys_max_cmd_len" ; then
@@ -4231,7 +4225,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
  
-@@ -3703,8 +4237,8 @@
+@@ -3703,8 +4237,8 @@ fi
  case $deplibs_check_method in
  file_magic*)
    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
@@ -4242,7 +4236,7 @@ Index: binutils-2.17/bfd/configure
  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3758,17 +4292,17 @@
+@@ -3758,17 +4292,17 @@ fi
  
  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  if test -n "$MAGIC_CMD"; then
@@ -4266,7 +4260,7 @@ Index: binutils-2.17/bfd/configure
  if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3822,11 +4356,11 @@
+@@ -3822,11 +4356,11 @@ fi
  
  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  if test -n "$MAGIC_CMD"; then
@@ -4282,7 +4276,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
    else
-@@ -3841,8 +4375,8 @@
+@@ -3841,8 +4375,8 @@ esac
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -4293,7 +4287,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_RANLIB+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3855,32 +4389,34 @@
+@@ -3855,32 +4389,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4335,7 +4329,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3893,27 +4429,41 @@
+@@ -3893,27 +4429,41 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4384,7 +4378,7 @@ Index: binutils-2.17/bfd/configure
  else
    RANLIB="$ac_cv_prog_RANLIB"
  fi
-@@ -3921,8 +4471,8 @@
+@@ -3921,8 +4471,8 @@ fi
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  set dummy ${ac_tool_prefix}strip; ac_word=$2
@@ -4395,7 +4389,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_STRIP+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3935,32 +4485,34 @@
+@@ -3935,32 +4485,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4437,7 +4431,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -3973,27 +4525,41 @@
+@@ -3973,27 +4525,41 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4486,7 +4480,7 @@ Index: binutils-2.17/bfd/configure
  else
    STRIP="$ac_cv_prog_STRIP"
  fi
-@@ -4008,22 +4574,22 @@
+@@ -4008,22 +4574,22 @@ test "$GCC" = yes && libtool_flags="$lib
  test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  
  
@@ -4516,7 +4510,7 @@ Index: binutils-2.17/bfd/configure
  test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
  test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
  
-@@ -4032,7 +4598,7 @@
+@@ -4032,7 +4598,7 @@ test x"$pic_mode" = xno && libtool_flags
  case $host in
  *-*-irix6*)
    # Find out which ABI we are using.
@@ -4525,7 +4519,7 @@ Index: binutils-2.17/bfd/configure
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    (eval $ac_compile) 2>&5
    ac_status=$?
-@@ -4137,13 +4703,12 @@
+@@ -4137,13 +4703,12 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    SAVE_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -belf"
@@ -4541,7 +4535,7 @@ Index: binutils-2.17/bfd/configure
       ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-@@ -4166,35 +4731,32 @@
+@@ -4166,35 +4731,32 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext conftest$ac_exeext
@@ -4592,7 +4586,7 @@ Index: binutils-2.17/bfd/configure
        conftest$ac_exeext conftest.$ac_ext
       ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
-@@ -4203,8 +4765,8 @@
+@@ -4203,8 +4765,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
  fi
@@ -4603,7 +4597,7 @@ Index: binutils-2.17/bfd/configure
    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
      CFLAGS="$SAVE_CFLAGS"
-@@ -4234,39 +4796,58 @@
+@@ -4234,39 +4796,58 @@ _ACEOF
  
  # The following way of writing the cache mishandles newlines in values,
  # but we know of no workaround that is simple, portable, and efficient.
@@ -4678,7 +4672,7 @@ Index: binutils-2.17/bfd/configure
    fi
  fi
  rm -f confcache
-@@ -4292,8 +4873,8 @@
+@@ -4292,8 +4873,8 @@ if test -r "$cache_file"; then
      { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  echo "$as_me: loading cache $cache_file" >&6;}
      case $cache_file in
@@ -4689,7 +4683,7 @@ Index: binutils-2.17/bfd/configure
      esac
    fi
  else
-@@ -4319,10 +4900,9 @@
+@@ -4319,10 +4900,9 @@ exec 5>>./config.log
  
  
  
@@ -4702,7 +4696,7 @@ Index: binutils-2.17/bfd/configure
    yes)  want64=true  ;;
    no)   want64=false ;;
    *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
-@@ -4331,10 +4911,10 @@
+@@ -4331,10 +4911,10 @@ echo "$as_me: error: bad value ${enablev
  esac
  else
    want64=false
@@ -4716,7 +4710,7 @@ Index: binutils-2.17/bfd/configure
    yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
  echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
     { (exit 1); exit 1; }; }
-@@ -4342,21 +4922,21 @@
+@@ -4342,21 +4922,21 @@ echo "$as_me: error: enable-targets opti
    no)       enable_targets= ;;
    *)        enable_targets=$enableval ;;
  esac
@@ -4745,7 +4739,7 @@ Index: binutils-2.17/bfd/configure
    yes)  want_mmap=true ;;
    no)   want_mmap=false ;;
    *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
-@@ -4365,11 +4945,11 @@
+@@ -4365,11 +4945,11 @@ echo "$as_me: error: bad value ${withval
  esac
  else
    want_mmap=false
@@ -4761,7 +4755,7 @@ Index: binutils-2.17/bfd/configure
    yes)  use_secureplt=true  ;;
    no)   use_secureplt=false ;;
    *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
-@@ -4378,7 +4958,8 @@
+@@ -4378,7 +4958,8 @@ echo "$as_me: error: bad value ${enablev
  esac
  else
    use_secureplt=false
@@ -4771,7 +4765,7 @@ Index: binutils-2.17/bfd/configure
  
  cat >>confdefs.h <<\_ACEOF
  #define USE_SECUREPLT 1
-@@ -4389,17 +4970,17 @@
+@@ -4389,17 +4970,17 @@ fi
  
  GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  
@@ -4793,7 +4787,7 @@ Index: binutils-2.17/bfd/configure
  
  # Enable -Werror by default when using gcc
  if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
-@@ -4416,10 +4997,9 @@
+@@ -4416,10 +4997,9 @@ if test "${GCC}" = yes ; then
    WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  fi
  
@@ -4806,7 +4800,7 @@ Index: binutils-2.17/bfd/configure
    yes)        WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
    no) if test "${GCC}" = yes ; then
          WARN_CFLAGS="-w"
-@@ -4430,7 +5010,8 @@
+@@ -4430,7 +5010,8 @@ if test "${enable_build_warnings+set}" =
          WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
    *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  esac
@@ -4816,7 +4810,7 @@ Index: binutils-2.17/bfd/configure
  
  if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
    echo "Setting warning flags = $WARN_CFLAGS" 6>&1
-@@ -4440,7 +5021,7 @@
+@@ -4440,7 +5021,7 @@ fi
  
  
  
@@ -4825,7 +4819,7 @@ Index: binutils-2.17/bfd/configure
  
  
  if test -z "$target" ; then
-@@ -4449,17 +5030,17 @@
+@@ -4449,17 +5030,17 @@ echo "$as_me: error: Unrecognized target
     { (exit 1); exit 1; }; }
  fi
  
@@ -4851,7 +4845,7 @@ Index: binutils-2.17/bfd/configure
  
  
  if test $USE_MAINTAINER_MODE = yes; then
-@@ -4488,21 +5069,21 @@
+@@ -4488,21 +5069,21 @@ esac
    *) target_noncanonical=${target_alias} ;;
  esac
  
@@ -4881,7 +4875,7 @@ Index: binutils-2.17/bfd/configure
  
  
  if test $install_libbfd_p = yes; then
-@@ -4545,8 +5126,8 @@
+@@ -4545,8 +5126,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  set dummy ${ac_tool_prefix}gcc; ac_word=$2
@@ -4892,7 +4886,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4559,32 +5140,34 @@
+@@ -4559,32 +5140,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4934,7 +4928,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4597,36 +5180,51 @@
+@@ -4597,36 +5180,51 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -4996,7 +4990,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4639,74 +5237,34 @@
+@@ -4639,74 +5237,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -5080,7 +5074,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4720,7 +5278,7 @@
+@@ -4720,7 +5278,7 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -5089,7 +5083,7 @@ Index: binutils-2.17/bfd/configure
      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
         ac_prog_rejected=yes
         continue
-@@ -4731,6 +5289,7 @@
+@@ -4731,6 +5289,7 @@ do
    fi
  done
  done
@@ -5097,7 +5091,7 @@ Index: binutils-2.17/bfd/configure
  
  if test $ac_prog_rejected = yes; then
    # We found a bogon in the path, so make sure we never use it.
-@@ -4748,22 +5307,23 @@
+@@ -4748,22 +5307,23 @@ fi
  fi
  CC=$ac_cv_prog_CC
  if test -n "$CC"; then
@@ -5128,7 +5122,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4776,36 +5336,38 @@
+@@ -4776,36 +5336,38 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -5175,7 +5169,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4818,29 +5380,45 @@
+@@ -4818,29 +5380,45 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -5227,7 +5221,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
  fi
-@@ -4853,27 +5431,41 @@
+@@ -4853,27 +5431,41 @@ See \`config.log' for more details." >&2
     { (exit 1); exit 1; }; }
  
  # Provide some information about the compiler.
@@ -5279,7 +5273,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_c_compiler_gnu+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -4896,50 +5488,49 @@
+@@ -4896,50 +5488,49 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -5353,7 +5347,7 @@ Index: binutils-2.17/bfd/configure
  /* confdefs.h.  */
  _ACEOF
  cat confdefs.h >>conftest.$ac_ext
-@@ -4955,46 +5546,126 @@
+@@ -4955,46 +5546,126 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -5510,7 +5504,7 @@ Index: binutils-2.17/bfd/configure
  else
    if test "$GCC" = yes; then
      CFLAGS="-O2"
-@@ -5002,12 +5673,12 @@
+@@ -5002,12 +5673,12 @@ else
      CFLAGS=
    fi
  fi
@@ -5527,7 +5521,7 @@ Index: binutils-2.17/bfd/configure
  ac_save_CC=$CC
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
-@@ -5041,12 +5712,17 @@
+@@ -5041,12 +5712,17 @@ static char *f (char * (*g) (char **, in
  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     function prototypes and stuff, but not '\xHH' hex character constants.
     These don't provoke an error unfortunately, instead are silently treated
@@ -5547,7 +5541,7 @@ Index: binutils-2.17/bfd/configure
  int test (int i, double x);
  struct s1 {int (*f) (int a);};
  struct s2 {int (*f) (double a);};
-@@ -5061,205 +5737,57 @@
+@@ -5061,205 +5737,57 @@ return f (e, argv, 0) != argv[0]  ||  f 
    return 0;
  }
  _ACEOF
@@ -5783,7 +5777,7 @@ Index: binutils-2.17/bfd/configure
  ac_ext=c
  ac_cpp='$CPP $CPPFLAGS'
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-@@ -5277,8 +5805,8 @@
+@@ -5277,8 +5805,8 @@ ALL_LINGUAS="fr tr ja es sv da zh_CN ro 
  if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -5794,7 +5788,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_RANLIB+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -5291,32 +5819,34 @@
+@@ -5291,32 +5819,34 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -5836,7 +5830,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -5329,27 +5859,41 @@
+@@ -5329,27 +5859,41 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -5885,7 +5879,7 @@ Index: binutils-2.17/bfd/configure
  else
    RANLIB="$ac_cv_prog_RANLIB"
  fi
-@@ -5359,8 +5903,8 @@
+@@ -5359,8 +5903,8 @@ ac_cpp='$CPP $CPPFLAGS'
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
@@ -5896,7 +5890,7 @@ Index: binutils-2.17/bfd/configure
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
-@@ -5394,24 +5938,22 @@
+@@ -5394,24 +5938,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  #endif
                     Syntax error
  _ACEOF
@@ -5932,7 +5926,7 @@ Index: binutils-2.17/bfd/configure
    :
  else
    echo "$as_me: failed program was:" >&5
-@@ -5420,9 +5962,10 @@
+@@ -5420,9 +5962,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
    # Broken: fails on valid input.
  continue
  fi
@@ -5944,7 +5938,7 @@ Index: binutils-2.17/bfd/configure
    # can be detected and how.
    cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
-@@ -5432,24 +5975,22 @@
+@@ -5432,24 +5975,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <ac_nonexistent.h>
  _ACEOF
@@ -5980,7 +5974,7 @@ Index: binutils-2.17/bfd/configure
    # Broken: success on invalid input.
  continue
  else
-@@ -5460,6 +6001,7 @@
+@@ -5460,6 +6001,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
  ac_preproc_ok=:
  break
  fi
@@ -5988,7 +5982,7 @@ Index: binutils-2.17/bfd/configure
  rm -f conftest.err conftest.$ac_ext
  
  done
-@@ -5477,8 +6019,8 @@
+@@ -5477,8 +6019,8 @@ fi
  else
    ac_cv_prog_CPP=$CPP
  fi
@@ -5999,7 +5993,7 @@ Index: binutils-2.17/bfd/configure
  ac_preproc_ok=false
  for ac_c_preproc_warn_flag in '' yes
  do
-@@ -5501,24 +6043,22 @@
+@@ -5501,24 +6043,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  #endif
                     Syntax error
  _ACEOF
@@ -6035,7 +6029,7 @@ Index: binutils-2.17/bfd/configure
    :
  else
    echo "$as_me: failed program was:" >&5
-@@ -5527,9 +6067,10 @@
+@@ -5527,9 +6067,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
    # Broken: fails on valid input.
  continue
  fi
@@ -6047,7 +6041,7 @@ Index: binutils-2.17/bfd/configure
    # can be detected and how.
    cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
-@@ -5539,24 +6080,22 @@
+@@ -5539,24 +6080,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <ac_nonexistent.h>
  _ACEOF
@@ -6083,7 +6077,7 @@ Index: binutils-2.17/bfd/configure
    # Broken: success on invalid input.
  continue
  else
-@@ -5567,6 +6106,7 @@
+@@ -5567,6 +6106,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
  ac_preproc_ok=:
  break
  fi
@@ -6091,7 +6085,7 @@ Index: binutils-2.17/bfd/configure
  rm -f conftest.err conftest.$ac_ext
  
  done
-@@ -5589,87 +6129,230 @@
+@@ -5589,87 +6129,230 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  
  
@@ -6392,7 +6386,7 @@ Index: binutils-2.17/bfd/configure
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    $EGREP "memchr" >/dev/null 2>&1; then
    :
-@@ -5713,6 +6396,7 @@
+@@ -5713,6 +6396,7 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <ctype.h>
@@ -6400,7 +6394,7 @@ Index: binutils-2.17/bfd/configure
  #if ((' ' & 0x0FF) == 0x020)
  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-@@ -5732,18 +6416,27 @@
+@@ -5732,18 +6416,27 @@ main ()
    for (i = 0; i < 256; i++)
      if (XOR (islower (i), ISLOWER (i))
        || toupper (i) != TOUPPER (i))
@@ -6434,7 +6428,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -5756,12 +6449,14 @@
+@@ -5756,12 +6449,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
  ( exit $ac_status )
  ac_cv_header_stdc=no
  fi
@@ -6452,7 +6446,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_header_stdc = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -5770,8 +6465,8 @@
+@@ -5770,8 +6465,8 @@ _ACEOF
  
  fi
  
@@ -6463,7 +6457,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_c_const+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -5789,10 +6484,10 @@
+@@ -5789,10 +6484,10 @@ main ()
  #ifndef __cplusplus
    /* Ultrix mips cc rejects this.  */
    typedef int charset[2];
@@ -6477,7 +6471,7 @@ Index: binutils-2.17/bfd/configure
    /* NEC SVR4.0.2 mips cc rejects this.  */
    struct point {int x, y;};
    static struct point const zero = {0,0};
-@@ -5801,16 +6496,17 @@
+@@ -5801,16 +6496,17 @@ main ()
       an arm of an if-expression whose if-part is not a constant
       expression */
    const char *g = "string";
@@ -6499,7 +6493,7 @@ Index: binutils-2.17/bfd/configure
    }
    { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
      int x[] = {25, 17};
-@@ -5829,7 +6525,9 @@
+@@ -5829,7 +6525,9 @@ main ()
    }
    { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
      const int foo = 10;
@@ -6509,7 +6503,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -5837,38 +6535,34 @@
+@@ -5837,38 +6535,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -6564,7 +6558,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_c_const = no; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -5877,8 +6571,8 @@
+@@ -5877,8 +6571,8 @@ _ACEOF
  
  fi
  
@@ -6575,7 +6569,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_c_inline+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -5898,39 +6592,37 @@
+@@ -5898,39 +6592,37 @@ $ac_kw foo_t foo () {return 0; }
  
  _ACEOF
  rm -f conftest.$ac_objext
@@ -6633,7 +6627,7 @@ Index: binutils-2.17/bfd/configure
  
  
  case $ac_cv_c_inline in
-@@ -5962,9 +6654,9 @@
+@@ -5962,9 +6654,9 @@ for ac_header in sys/types.h sys/stat.h 
                  inttypes.h stdint.h unistd.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -6646,7 +6640,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -5978,38 +6670,35 @@
+@@ -5978,38 +6670,35 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -6702,7 +6696,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-@@ -6020,8 +6709,8 @@
+@@ -6020,8 +6709,8 @@ fi
  done
  
  
@@ -6713,7 +6707,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_type_off_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6032,62 +6721,59 @@
+@@ -6032,62 +6721,59 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -6798,7 +6792,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_type_size_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6098,64 +6784,61 @@
+@@ -6098,64 +6784,61 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -6885,7 +6879,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_working_alloca_h+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6170,44 +6853,42 @@
+@@ -6170,44 +6853,42 @@ int
  main ()
  {
  char *p = (char *) alloca (2 * sizeof (int));
@@ -6948,7 +6942,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_working_alloca_h = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -6216,8 +6897,8 @@
+@@ -6216,8 +6897,8 @@ _ACEOF
  
  fi
  
@@ -6959,7 +6953,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_func_alloca_works+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6234,7 +6915,7 @@
+@@ -6234,7 +6915,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  #  include <malloc.h>
  #  define alloca _alloca
  # else
@@ -6968,7 +6962,7 @@ Index: binutils-2.17/bfd/configure
  #   include <alloca.h>
  #  else
  #   ifdef _AIX
-@@ -6252,44 +6933,42 @@
+@@ -6252,44 +6933,42 @@ int
  main ()
  {
  char *p = (char *) alloca (1);
@@ -7031,7 +7025,7 @@ Index: binutils-2.17/bfd/configure
  
  if test $ac_cv_func_alloca_works = yes; then
  
-@@ -6303,15 +6982,15 @@
+@@ -6303,15 +6982,15 @@ else
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  
@@ -7050,7 +7044,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_os_cray+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6321,7 +7000,7 @@
+@@ -6321,7 +7000,7 @@ _ACEOF
  cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
@@ -7059,7 +7053,7 @@ Index: binutils-2.17/bfd/configure
  webecray
  #else
  wenotbecray
-@@ -6337,14 +7016,14 @@
+@@ -6337,14 +7016,14 @@ fi
  rm -f conftest*
  
  fi
@@ -7079,7 +7073,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -6370,68 +7049,60 @@
+@@ -6370,68 +7049,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -7171,7 +7165,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -6444,8 +7115,8 @@
+@@ -6444,8 +7115,8 @@ fi
    done
  fi
  
@@ -7182,7 +7176,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_c_stack_direction+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6458,6 +7129,7 @@
+@@ -6458,6 +7129,7 @@ _ACEOF
  cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
@@ -7190,7 +7184,7 @@ Index: binutils-2.17/bfd/configure
  int
  find_stack_direction ()
  {
-@@ -6475,17 +7147,26 @@
+@@ -6475,17 +7147,26 @@ find_stack_direction ()
  int
  main ()
  {
@@ -7222,7 +7216,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -6498,11 +7179,13 @@
+@@ -6498,11 +7179,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
  ( exit $ac_status )
  ac_cv_c_stack_direction=-1
  fi
@@ -7239,7 +7233,7 @@ Index: binutils-2.17/bfd/configure
  
  cat >>confdefs.h <<_ACEOF
  #define STACK_DIRECTION $ac_cv_c_stack_direction
-@@ -6516,18 +7199,19 @@
+@@ -6516,18 +7199,19 @@ fi
  for ac_header in stdlib.h unistd.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -7267,7 +7261,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -6538,41 +7222,37 @@
+@@ -6538,41 +7222,37 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -7327,7 +7321,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -6581,24 +7261,22 @@
+@@ -6581,24 +7261,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <$ac_header>
  _ACEOF
@@ -7363,7 +7357,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -6606,9 +7284,10 @@
+@@ -6606,9 +7284,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -7376,7 +7370,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -6632,25 +7311,19 @@
+@@ -6632,25 +7311,19 @@ echo "$as_me: WARNING: $ac_header:     s
  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
@@ -7409,7 +7403,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
-@@ -6666,9 +7339,9 @@
+@@ -6666,9 +7339,9 @@ done
  for ac_func in getpagesize
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -7422,7 +7416,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -6694,68 +7367,60 @@
+@@ -6694,68 +7367,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -7514,7 +7508,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -6764,8 +7429,8 @@
+@@ -6764,8 +7429,8 @@ _ACEOF
  fi
  done
  
@@ -7525,7 +7519,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -6807,21 +7472,21 @@
+@@ -6807,21 +7472,21 @@ $ac_includes_default
  #include <fcntl.h>
  #include <sys/mman.h>
  
@@ -7551,7 +7545,7 @@ Index: binutils-2.17/bfd/configure
  #   include <sys/param.h>
  #   ifdef EXEC_PAGESIZE
  #    define getpagesize() EXEC_PAGESIZE
-@@ -6860,15 +7525,15 @@
+@@ -6860,15 +7525,15 @@ main ()
    /* First, make a file with some known garbage in it. */
    data = (char *) malloc (pagesize);
    if (!data)
@@ -7570,7 +7564,7 @@ Index: binutils-2.17/bfd/configure
    close (fd);
  
    /* Next, try to mmap the file at a fixed address which already has
-@@ -6876,17 +7541,17 @@
+@@ -6876,17 +7541,17 @@ main ()
       we see the same garbage.  */
    fd = open ("conftest.mmap", O_RDWR);
    if (fd < 0)
@@ -7593,7 +7587,7 @@ Index: binutils-2.17/bfd/configure
  
    /* Finally, make sure that changes to the mapped area do not
       percolate back to the file as seen by read().  (This is a bug on
-@@ -6895,24 +7560,33 @@
+@@ -6895,24 +7560,33 @@ main ()
      *(data2 + i) = *(data2 + i) + 1;
    data3 = (char *) malloc (pagesize);
    if (!data3)
@@ -7635,7 +7629,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -6925,11 +7599,13 @@
+@@ -6925,11 +7599,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
  ( exit $ac_status )
  ac_cv_func_mmap_fixed_mapped=no
  fi
@@ -7652,7 +7646,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_func_mmap_fixed_mapped = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -6953,18 +7629,19 @@
+@@ -6953,18 +7629,19 @@ for ac_header in argz.h limits.h locale.
  unistd.h values.h sys/param.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -7680,7 +7674,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -6975,41 +7652,37 @@
+@@ -6975,41 +7652,37 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -7740,7 +7734,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -7018,24 +7691,22 @@
+@@ -7018,24 +7691,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <$ac_header>
  _ACEOF
@@ -7776,7 +7770,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -7043,9 +7714,10 @@
+@@ -7043,9 +7714,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -7789,7 +7783,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -7069,25 +7741,19 @@
+@@ -7069,25 +7741,19 @@ echo "$as_me: WARNING: $ac_header:     s
  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
@@ -7822,7 +7816,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
-@@ -7113,9 +7779,9 @@
+@@ -7113,9 +7779,9 @@ for ac_func in getcwd munmap putenv sete
  __argz_count __argz_stringify __argz_next
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -7835,7 +7829,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -7141,68 +7807,60 @@
+@@ -7141,68 +7807,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -7927,7 +7921,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -7217,9 +7875,9 @@
+@@ -7217,9 +7875,9 @@ done
  for ac_func in stpcpy
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -7940,7 +7934,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -7245,68 +7903,60 @@
+@@ -7245,68 +7903,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -8032,7 +8026,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -7325,8 +7975,8 @@
+@@ -7325,8 +7975,8 @@ _ACEOF
     fi
  
     if test $ac_cv_header_locale_h = yes; then
@@ -8043,7 +8037,7 @@ Index: binutils-2.17/bfd/configure
  if test "${am_cv_val_LC_MESSAGES+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7346,39 +7996,36 @@
+@@ -7346,39 +7996,36 @@ return LC_MESSAGES
  }
  _ACEOF
  rm -f conftest.$ac_objext conftest$ac_exeext
@@ -8100,7 +8094,7 @@ Index: binutils-2.17/bfd/configure
      if test $am_cv_val_LC_MESSAGES = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -7387,34 +8034,34 @@
+@@ -7387,34 +8034,34 @@ _ACEOF
  
      fi
    fi
@@ -8151,7 +8145,7 @@ Index: binutils-2.17/bfd/configure
  
        nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
        if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
-@@ -7423,17 +8070,17 @@
+@@ -7423,17 +8070,17 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_get
        CATOBJEXT=
  
        if test "${ac_cv_header_libintl_h+set}" = set; then
@@ -8175,7 +8169,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -7444,41 +8091,37 @@
+@@ -7444,41 +8091,37 @@ $ac_includes_default
  #include <libintl.h>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -8235,7 +8229,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -7487,24 +8130,22 @@
+@@ -7487,24 +8130,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <libintl.h>
  _ACEOF
@@ -8271,7 +8265,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -7512,9 +8153,10 @@
+@@ -7512,9 +8153,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -8284,7 +8278,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -7538,30 +8180,23 @@
+@@ -7538,30 +8180,23 @@ echo "$as_me: WARNING: libintl.h:     se
  echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
@@ -8322,7 +8316,7 @@ Index: binutils-2.17/bfd/configure
  if test "${gt_cv_func_gettext_libc+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7581,43 +8216,40 @@
+@@ -7581,43 +8216,40 @@ return (int) gettext ("")
  }
  _ACEOF
  rm -f conftest.$ac_objext conftest$ac_exeext
@@ -8385,7 +8379,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7630,59 +8262,56 @@
+@@ -7630,59 +8262,56 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
@@ -8468,7 +8462,7 @@ Index: binutils-2.17/bfd/configure
  if test "${gt_cv_func_gettext_libintl+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7702,39 +8331,36 @@
+@@ -7702,39 +8331,36 @@ return (int) gettext ("")
  }
  _ACEOF
  rm -f conftest.$ac_objext conftest$ac_exeext
@@ -8525,7 +8519,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
           fi
-@@ -7748,8 +8374,8 @@
+@@ -7748,8 +8374,8 @@ _ACEOF
  
              # Extract the first word of "msgfmt", so it can be a program name with args.
  set dummy msgfmt; ac_word=$2
@@ -8536,7 +8530,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_path_MSGFMT+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7775,20 +8401,20 @@
+@@ -7775,20 +8401,20 @@ esac
  fi
  MSGFMT="$ac_cv_path_MSGFMT"
  if test -n "$MSGFMT"; then
@@ -8564,7 +8558,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -7814,68 +8440,60 @@
+@@ -7814,68 +8440,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -8656,7 +8650,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -7886,8 +8504,8 @@
+@@ -7886,8 +8504,8 @@ done
  
                # Extract the first word of "gmsgfmt", so it can be a program name with args.
  set dummy gmsgfmt; ac_word=$2
@@ -8667,7 +8661,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_path_GMSGFMT+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7902,32 +8520,33 @@
+@@ -7902,32 +8520,33 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -8709,7 +8703,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_path_XGETTEXT+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -7953,11 +8572,11 @@
+@@ -7953,11 +8572,11 @@ esac
  fi
  XGETTEXT="$ac_cv_path_XGETTEXT"
  if test -n "$XGETTEXT"; then
@@ -8725,7 +8719,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
                cat >conftest.$ac_ext <<_ACEOF
-@@ -7977,37 +8596,34 @@
+@@ -7977,37 +8596,34 @@ extern int _nl_msg_cat_cntr;
  }
  _ACEOF
  rm -f conftest.$ac_objext conftest$ac_exeext
@@ -8778,7 +8772,7 @@ Index: binutils-2.17/bfd/configure
        conftest$ac_exeext conftest.$ac_ext
                INSTOBJEXT=.mo
              fi
-@@ -8029,8 +8645,8 @@
+@@ -8029,8 +8645,8 @@ fi
                  INTLOBJS="\$(GETTOBJS)"
          # Extract the first word of "msgfmt", so it can be a program name with args.
  set dummy msgfmt; ac_word=$2
@@ -8789,7 +8783,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_path_MSGFMT+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -8056,17 +8672,17 @@
+@@ -8056,17 +8672,17 @@ esac
  fi
  MSGFMT="$ac_cv_path_MSGFMT"
  if test -n "$MSGFMT"; then
@@ -8813,7 +8807,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_path_GMSGFMT+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -8081,32 +8697,33 @@
+@@ -8081,32 +8697,33 @@ do
    IFS=$as_save_IFS
    test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
@@ -8855,7 +8849,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_path_XGETTEXT+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -8132,11 +8749,11 @@
+@@ -8132,11 +8749,11 @@ esac
  fi
  XGETTEXT="$ac_cv_path_XGETTEXT"
  if test -n "$XGETTEXT"; then
@@ -8871,7 +8865,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
  
-@@ -8155,8 +8772,8 @@
+@@ -8155,8 +8772,8 @@ fi
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
          : ;
        else
@@ -8882,7 +8876,7 @@ Index: binutils-2.17/bfd/configure
          XGETTEXT=":"
        fi
        fi
-@@ -8205,8 +8822,8 @@
+@@ -8205,8 +8822,8 @@ _ACEOF
       if test "x$ALL_LINGUAS" = "x"; then
         LINGUAS=
       else
@@ -8893,7 +8887,7 @@ Index: binutils-2.17/bfd/configure
         NEW_LINGUAS=
         for lang in ${LINGUAS=$ALL_LINGUAS}; do
           case "$ALL_LINGUAS" in
-@@ -8214,8 +8831,8 @@
+@@ -8214,8 +8831,8 @@ echo $ECHO_N "checking for catalogs to b
           esac
         done
         LINGUAS=$NEW_LINGUAS
@@ -8904,7 +8898,7 @@ Index: binutils-2.17/bfd/configure
       fi
  
            if test -n "$LINGUAS"; then
-@@ -8234,17 +8851,17 @@
+@@ -8234,17 +8851,17 @@ echo "${ECHO_T}$LINGUAS" >&6
              if test -f $srcdir/po2tbl.sed.in; then
        if test "$CATOBJEXT" = ".cat"; then
         if test "${ac_cv_header_linux_version_h+set}" = set; then
@@ -8928,7 +8922,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -8255,41 +8872,37 @@
+@@ -8255,41 +8872,37 @@ $ac_includes_default
  #include <linux/version.h>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -8988,7 +8982,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -8298,24 +8911,22 @@
+@@ -8298,24 +8911,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <linux/version.h>
  _ACEOF
@@ -9024,7 +9018,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -8323,9 +8934,10 @@
+@@ -8323,9 +8934,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -9037,7 +9031,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -8349,25 +8961,18 @@
+@@ -8349,25 +8961,18 @@ echo "$as_me: WARNING: linux/version.h: 
  echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
@@ -9068,7 +9062,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test $ac_cv_header_linux_version_h = yes; then
-@@ -8434,8 +9039,8 @@
+@@ -8434,8 +9039,8 @@ fi
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # OS/2's system install, which has a completely different semantic
  # ./install, which can be erroneously created by make from ./install.sh.
@@ -9079,7 +9073,7 @@ Index: binutils-2.17/bfd/configure
  if test -z "$INSTALL"; then
  if test "${ac_cv_path_install+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
-@@ -8457,7 +9062,7 @@
+@@ -8457,7 +9062,7 @@ case $as_dir/ in
      # by default.
      for ac_prog in ginstall scoinst install; do
        for ac_exec_ext in '' $ac_executable_extensions; do
@@ -9088,7 +9082,7 @@ Index: binutils-2.17/bfd/configure
          if test $ac_prog = install &&
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
            # AIX install.  It has an incompatible calling convention.
-@@ -8476,21 +9081,22 @@
+@@ -8476,21 +9081,22 @@ case $as_dir/ in
      ;;
  esac
  done
@@ -9116,7 +9110,7 @@ Index: binutils-2.17/bfd/configure
  
  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  # It thinks the first close brace ends the variable substitution.
-@@ -8507,8 +9113,8 @@
+@@ -8507,8 +9113,8 @@ BFD_HOST_64_BIT_DEFINED=0
  BFD_HOST_64_BIT=
  BFD_HOST_U_64_BIT=
  
@@ -9127,7 +9121,7 @@ Index: binutils-2.17/bfd/configure
  if test "${bfd_cv_has_long_long+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -8528,43 +9134,39 @@
+@@ -8528,43 +9134,39 @@ unsigned long long ll = 1844674407370955
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9189,7 +9183,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_type_long_long+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -8575,61 +9177,57 @@
+@@ -8575,61 +9177,57 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9276,7 +9270,7 @@ Index: binutils-2.17/bfd/configure
    if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
  cat >conftest.$ac_ext <<_ACEOF
-@@ -8639,10 +9237,11 @@
+@@ -8639,10 +9237,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9289,7 +9283,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -8650,27 +9249,22 @@
+@@ -8650,27 +9249,22 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9328,7 +9322,7 @@ Index: binutils-2.17/bfd/configure
    ac_lo=0 ac_mid=0
    while :; do
      cat >conftest.$ac_ext <<_ACEOF
-@@ -8680,10 +9274,11 @@
+@@ -8680,10 +9274,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9341,7 +9335,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -8691,56 +9286,53 @@
+@@ -8691,56 +9286,53 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9420,7 +9414,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -8748,27 +9340,22 @@
+@@ -8748,27 +9340,22 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9459,7 +9453,7 @@ Index: binutils-2.17/bfd/configure
    ac_hi=-1 ac_mid=-1
    while :; do
      cat >conftest.$ac_ext <<_ACEOF
-@@ -8778,10 +9365,11 @@
+@@ -8778,10 +9365,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9472,7 +9466,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -8789,50 +9377,48 @@
+@@ -8789,50 +9377,48 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9547,7 +9541,7 @@ Index: binutils-2.17/bfd/configure
  # Binary search between lo and hi bounds.
  while test "x$ac_lo" != "x$ac_hi"; do
    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
-@@ -8843,10 +9429,11 @@
+@@ -8843,10 +9429,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9560,7 +9554,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -8854,52 +9441,45 @@
+@@ -8854,52 +9441,45 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9634,7 +9628,7 @@ Index: binutils-2.17/bfd/configure
    cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -8907,8 +9487,9 @@
+@@ -8907,8 +9487,9 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9646,7 +9640,7 @@ Index: binutils-2.17/bfd/configure
  #include <stdio.h>
  #include <stdlib.h>
  int
-@@ -8917,35 +9498,44 @@
+@@ -8917,35 +9498,44 @@ main ()
  
    FILE *f = fopen ("conftest.val", "w");
    if (! f)
@@ -9704,7 +9698,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -8956,22 +9546,25 @@
+@@ -8956,22 +9546,25 @@ echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
  
  ( exit $ac_status )
@@ -9740,7 +9734,7 @@ Index: binutils-2.17/bfd/configure
  cat >>confdefs.h <<_ACEOF
  #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  _ACEOF
-@@ -8979,8 +9572,8 @@
+@@ -8979,8 +9572,8 @@ _ACEOF
  
  fi
  
@@ -9751,7 +9745,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_type_long+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -8991,61 +9584,57 @@
+@@ -8991,61 +9584,57 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9838,7 +9832,7 @@ Index: binutils-2.17/bfd/configure
    if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
  cat >conftest.$ac_ext <<_ACEOF
-@@ -9055,10 +9644,11 @@
+@@ -9055,10 +9644,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9851,7 +9845,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -9066,27 +9656,22 @@
+@@ -9066,27 +9656,22 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9890,7 +9884,7 @@ Index: binutils-2.17/bfd/configure
    ac_lo=0 ac_mid=0
    while :; do
      cat >conftest.$ac_ext <<_ACEOF
-@@ -9096,10 +9681,11 @@
+@@ -9096,10 +9681,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -9903,7 +9897,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -9107,56 +9693,53 @@
+@@ -9107,56 +9693,53 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -9982,7 +9976,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -9164,27 +9747,22 @@
+@@ -9164,27 +9747,22 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10021,7 +10015,7 @@ Index: binutils-2.17/bfd/configure
    ac_hi=-1 ac_mid=-1
    while :; do
      cat >conftest.$ac_ext <<_ACEOF
-@@ -9194,10 +9772,11 @@
+@@ -9194,10 +9772,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -10034,7 +10028,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -9205,50 +9784,48 @@
+@@ -9205,50 +9784,48 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10109,7 +10103,7 @@ Index: binutils-2.17/bfd/configure
  # Binary search between lo and hi bounds.
  while test "x$ac_lo" != "x$ac_hi"; do
    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
-@@ -9259,10 +9836,11 @@
+@@ -9259,10 +9836,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -10122,7 +10116,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -9270,52 +9848,45 @@
+@@ -9270,52 +9848,45 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10196,7 +10190,7 @@ Index: binutils-2.17/bfd/configure
    cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -9323,8 +9894,9 @@
+@@ -9323,8 +9894,9 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -10208,7 +10202,7 @@ Index: binutils-2.17/bfd/configure
  #include <stdio.h>
  #include <stdlib.h>
  int
-@@ -9333,35 +9905,44 @@
+@@ -9333,35 +9905,44 @@ main ()
  
    FILE *f = fopen ("conftest.val", "w");
    if (! f)
@@ -10266,7 +10260,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -9372,22 +9953,25 @@
+@@ -9372,22 +9953,25 @@ echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
  
  ( exit $ac_status )
@@ -10302,7 +10296,7 @@ Index: binutils-2.17/bfd/configure
  cat >>confdefs.h <<_ACEOF
  #define SIZEOF_LONG $ac_cv_sizeof_long
  _ACEOF
-@@ -9428,8 +10012,8 @@
+@@ -9428,8 +10012,8 @@ fi
  if test "x$cross_compiling" = "xno"; then
    EXEEXT_FOR_BUILD='$(EXEEXT)'
  else
@@ -10313,7 +10307,7 @@ Index: binutils-2.17/bfd/configure
  if test "${bfd_cv_build_exeext+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -9446,8 +10030,8 @@
+@@ -9446,8 +10030,8 @@ else
       rm -f conftest*
       test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  fi
@@ -10324,7 +10318,7 @@ Index: binutils-2.17/bfd/configure
    EXEEXT_FOR_BUILD=""
    test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  fi
-@@ -9462,18 +10046,19 @@
+@@ -9462,18 +10046,19 @@ fi
  for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -10352,7 +10346,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -9484,41 +10069,37 @@
+@@ -9484,41 +10069,37 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10412,7 +10406,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -9527,24 +10108,22 @@
+@@ -9527,24 +10108,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <$ac_header>
  _ACEOF
@@ -10448,7 +10442,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -9552,9 +10131,10 @@
+@@ -9552,9 +10131,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -10461,7 +10455,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -9578,25 +10158,19 @@
+@@ -9578,25 +10158,19 @@ echo "$as_me: WARNING: $ac_header:     s
  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
@@ -10494,7 +10488,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
-@@ -9614,18 +10188,19 @@
+@@ -9614,18 +10188,19 @@ done
  for ac_header in fcntl.h sys/file.h sys/time.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -10522,7 +10516,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -9636,41 +10211,37 @@
+@@ -9636,41 +10211,37 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10582,7 +10576,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -9679,24 +10250,22 @@
+@@ -9679,24 +10250,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <$ac_header>
  _ACEOF
@@ -10618,7 +10612,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -9704,9 +10273,10 @@
+@@ -9704,9 +10273,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -10631,7 +10625,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -9730,25 +10300,19 @@
+@@ -9730,25 +10300,19 @@ echo "$as_me: WARNING: $ac_header:     s
  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
@@ -10664,7 +10658,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
-@@ -9760,8 +10324,8 @@
+@@ -9760,8 +10324,8 @@ fi
  
  done
  
@@ -10675,7 +10669,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_header_time+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -9785,38 +10349,34 @@
+@@ -9785,38 +10349,34 @@ return 0;
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10730,7 +10724,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_header_time = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -9833,9 +10393,9 @@
+@@ -9833,9 +10393,9 @@ fi
  ac_header_dirent=no
  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
@@ -10743,7 +10737,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -9857,38 +10417,35 @@
+@@ -9857,38 +10417,35 @@ return 0;
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -10799,7 +10793,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
-@@ -9900,13 +10457,12 @@
+@@ -9900,13 +10457,12 @@ fi
  done
  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  if test $ac_header_dirent = dirent.h; then
@@ -10815,7 +10809,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -9914,126 +10470,83 @@
+@@ -9914,126 +10470,83 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
@@ -10985,7 +10979,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -10041,122 +10554,80 @@
+@@ -10041,122 +10554,80 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  
@@ -11151,7 +11145,7 @@ Index: binutils-2.17/bfd/configure
  if test "${gcc_cv_header_string+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10177,38 +10648,34 @@
+@@ -10177,38 +10648,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11206,7 +11200,7 @@ Index: binutils-2.17/bfd/configure
  if test $gcc_cv_header_string = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -10227,9 +10694,9 @@
+@@ -10227,9 +10694,9 @@ fi
  for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -11219,7 +11213,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -10255,68 +10722,60 @@
+@@ -10255,68 +10722,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -11311,7 +11305,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -10329,9 +10788,9 @@
+@@ -10329,9 +10788,9 @@ done
  for ac_func in strtoull
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -11324,7 +11318,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -10357,68 +10816,60 @@
+@@ -10357,68 +10816,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -11416,7 +11410,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -10428,8 +10879,8 @@
+@@ -10428,8 +10879,8 @@ fi
  done
  
  
@@ -11427,7 +11421,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_basename+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10444,7 +10895,7 @@
+@@ -10444,7 +10895,7 @@ int
  main ()
  {
  #ifndef basename
@@ -11436,7 +11430,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10452,38 +10903,34 @@
+@@ -10452,38 +10903,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11491,7 +11485,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_basename = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10500,8 +10947,8 @@
+@@ -10500,8 +10947,8 @@ _ACEOF
  fi
  
  
@@ -11502,7 +11496,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_ftello+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10516,7 +10963,7 @@
+@@ -10516,7 +10963,7 @@ int
  main ()
  {
  #ifndef ftello
@@ -11511,7 +11505,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10524,38 +10971,34 @@
+@@ -10524,38 +10971,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11566,7 +11560,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_ftello = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10572,8 +11015,8 @@
+@@ -10572,8 +11015,8 @@ _ACEOF
  fi
  
  
@@ -11577,7 +11571,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_ftello64+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10588,7 +11031,7 @@
+@@ -10588,7 +11031,7 @@ int
  main ()
  {
  #ifndef ftello64
@@ -11586,7 +11580,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10596,38 +11039,34 @@
+@@ -10596,38 +11039,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11641,7 +11635,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_ftello64 = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10644,8 +11083,8 @@
+@@ -10644,8 +11083,8 @@ _ACEOF
  fi
  
  
@@ -11652,7 +11646,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_fseeko+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10660,7 +11099,7 @@
+@@ -10660,7 +11099,7 @@ int
  main ()
  {
  #ifndef fseeko
@@ -11661,7 +11655,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10668,38 +11107,34 @@
+@@ -10668,38 +11107,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11716,7 +11710,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_fseeko = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10716,8 +11151,8 @@
+@@ -10716,8 +11151,8 @@ _ACEOF
  fi
  
  
@@ -11727,7 +11721,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_fseeko64+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10732,7 +11167,7 @@
+@@ -10732,7 +11167,7 @@ int
  main ()
  {
  #ifndef fseeko64
@@ -11736,7 +11730,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10740,38 +11175,34 @@
+@@ -10740,38 +11175,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11791,7 +11785,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_fseeko64 = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10799,8 +11230,8 @@
+@@ -10799,8 +11230,8 @@ _ACEOF
   ;;
  esac
  
@@ -11802,7 +11796,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_ffs+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10815,7 +11246,7 @@
+@@ -10815,7 +11246,7 @@ int
  main ()
  {
  #ifndef ffs
@@ -11811,7 +11805,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10823,38 +11254,34 @@
+@@ -10823,38 +11254,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11866,7 +11860,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_ffs = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10871,8 +11298,8 @@
+@@ -10871,8 +11298,8 @@ _ACEOF
  fi
  
  
@@ -11877,7 +11871,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_free+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10887,7 +11314,7 @@
+@@ -10887,7 +11314,7 @@ int
  main ()
  {
  #ifndef free
@@ -11886,7 +11880,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10895,38 +11322,34 @@
+@@ -10895,38 +11322,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -11941,7 +11935,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_free = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -10943,8 +11366,8 @@
+@@ -10943,8 +11366,8 @@ _ACEOF
  fi
  
  
@@ -11952,7 +11946,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_getenv+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -10959,7 +11382,7 @@
+@@ -10959,7 +11382,7 @@ int
  main ()
  {
  #ifndef getenv
@@ -11961,7 +11955,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -10967,38 +11390,34 @@
+@@ -10967,38 +11390,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12016,7 +12010,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_getenv = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11015,8 +11434,8 @@
+@@ -11015,8 +11434,8 @@ _ACEOF
  fi
  
  
@@ -12027,7 +12021,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_malloc+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11031,7 +11450,7 @@
+@@ -11031,7 +11450,7 @@ int
  main ()
  {
  #ifndef malloc
@@ -12036,7 +12030,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -11039,38 +11458,34 @@
+@@ -11039,38 +11458,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12091,7 +12085,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_malloc = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11087,8 +11502,8 @@
+@@ -11087,8 +11502,8 @@ _ACEOF
  fi
  
  
@@ -12102,7 +12096,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_realloc+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11103,7 +11518,7 @@
+@@ -11103,7 +11518,7 @@ int
  main ()
  {
  #ifndef realloc
@@ -12111,7 +12105,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -11111,38 +11526,34 @@
+@@ -11111,38 +11526,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12166,7 +12160,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_realloc = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11159,8 +11570,8 @@
+@@ -11159,8 +11570,8 @@ _ACEOF
  fi
  
  
@@ -12177,7 +12171,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_stpcpy+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11175,7 +11586,7 @@
+@@ -11175,7 +11586,7 @@ int
  main ()
  {
  #ifndef stpcpy
@@ -12186,7 +12180,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -11183,38 +11594,34 @@
+@@ -11183,38 +11594,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12241,7 +12235,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_stpcpy = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11231,8 +11638,8 @@
+@@ -11231,8 +11638,8 @@ _ACEOF
  fi
  
  
@@ -12252,7 +12246,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_strstr+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11247,7 +11654,7 @@
+@@ -11247,7 +11654,7 @@ int
  main ()
  {
  #ifndef strstr
@@ -12261,7 +12255,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -11255,38 +11662,34 @@
+@@ -11255,38 +11662,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12316,7 +12310,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_strstr = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11303,8 +11706,8 @@
+@@ -11303,8 +11706,8 @@ _ACEOF
  fi
  
  
@@ -12327,7 +12321,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_snprintf+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11319,7 +11722,7 @@
+@@ -11319,7 +11722,7 @@ int
  main ()
  {
  #ifndef snprintf
@@ -12336,7 +12330,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -11327,38 +11730,34 @@
+@@ -11327,38 +11730,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12391,7 +12385,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_snprintf = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11375,8 +11774,8 @@
+@@ -11375,8 +11774,8 @@ _ACEOF
  fi
  
  
@@ -12402,7 +12396,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11391,7 +11790,7 @@
+@@ -11391,7 +11790,7 @@ int
  main ()
  {
  #ifndef vsnprintf
@@ -12411,7 +12405,7 @@ Index: binutils-2.17/bfd/configure
  #endif
  
    ;
-@@ -11399,38 +11798,34 @@
+@@ -11399,38 +11798,34 @@ main ()
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12466,7 +12460,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_have_decl_vsnprintf = yes; then
  
  cat >>confdefs.h <<_ACEOF
-@@ -11609,8 +12004,8 @@
+@@ -11609,8 +12004,8 @@ if test "${target}" = "${host}"; then
        COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
        # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
        # have c_impl as a member of struct core_dumpx
@@ -12477,7 +12471,7 @@ Index: binutils-2.17/bfd/configure
        cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -11627,42 +12022,38 @@
+@@ -11627,42 +12022,38 @@ struct core_dumpx c; c.c_impl = 0;
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12537,7 +12531,7 @@ Index: binutils-2.17/bfd/configure
        ;;
    rs6000-*-aix4*)     COREFILE=rs6000-core.lo ;;
    rs6000-*-*)         COREFILE=rs6000-core.lo ;;
-@@ -11726,18 +12117,19 @@
+@@ -11726,18 +12117,19 @@ rm -f conftest.err conftest.$ac_objext c
  for ac_header in sys/procfs.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -12565,7 +12559,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -11748,41 +12140,37 @@
+@@ -11748,41 +12140,37 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12625,7 +12619,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -11791,24 +12179,22 @@
+@@ -11791,24 +12179,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <$ac_header>
  _ACEOF
@@ -12661,7 +12655,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -11816,9 +12202,10 @@
+@@ -11816,9 +12202,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -12674,7 +12668,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -11842,25 +12229,19 @@
+@@ -11842,25 +12229,19 @@ echo "$as_me: WARNING: $ac_header:     s
  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
@@ -12707,7 +12701,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
-@@ -11873,8 +12254,8 @@
+@@ -11873,8 +12254,8 @@ fi
  done
  
    if test "$ac_cv_header_sys_procfs_h" = yes; then
@@ -12718,7 +12712,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11896,36 +12277,32 @@
+@@ -11896,36 +12277,32 @@ prstatus_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12769,7 +12763,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
-@@ -11935,11 +12312,11 @@
+@@ -11935,11 +12312,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -12785,7 +12779,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -11961,36 +12338,32 @@
+@@ -11961,36 +12338,32 @@ prstatus32_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12836,7 +12830,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
-@@ -12000,11 +12373,11 @@
+@@ -12000,11 +12373,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -12852,7 +12846,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12026,36 +12399,32 @@
+@@ -12026,36 +12399,32 @@ prstatus_t avar; void* aref = (void*) &a
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12903,7 +12897,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
-@@ -12065,11 +12434,11 @@
+@@ -12065,11 +12434,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -12919,7 +12913,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12091,36 +12460,32 @@
+@@ -12091,36 +12460,32 @@ prstatus32_t avar; void* aref = (void*) 
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -12970,7 +12964,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
-@@ -12130,11 +12495,11 @@
+@@ -12130,11 +12495,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -12986,7 +12980,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12156,36 +12521,32 @@
+@@ -12156,36 +12521,32 @@ pstatus_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13037,7 +13031,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
-@@ -12195,11 +12556,11 @@
+@@ -12195,11 +12556,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13053,7 +13047,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12221,36 +12582,32 @@
+@@ -12221,36 +12582,32 @@ pxstatus_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13104,7 +13098,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
-@@ -12260,11 +12617,11 @@
+@@ -12260,11 +12617,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13120,7 +13114,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12286,36 +12643,32 @@
+@@ -12286,36 +12643,32 @@ pstatus32_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13171,7 +13165,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
-@@ -12325,11 +12678,11 @@
+@@ -12325,11 +12678,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13187,7 +13181,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12351,36 +12704,32 @@
+@@ -12351,36 +12704,32 @@ prpsinfo_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13238,7 +13232,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
-@@ -12390,11 +12739,11 @@
+@@ -12390,11 +12739,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13254,7 +13248,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12416,36 +12765,32 @@
+@@ -12416,36 +12765,32 @@ prpsinfo32_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13305,7 +13299,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
-@@ -12455,11 +12800,11 @@
+@@ -12455,11 +12800,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13321,7 +13315,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12481,36 +12826,32 @@
+@@ -12481,36 +12826,32 @@ psinfo_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13372,7 +13366,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
-@@ -12520,11 +12861,11 @@
+@@ -12520,11 +12861,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13388,7 +13382,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12546,36 +12887,32 @@
+@@ -12546,36 +12887,32 @@ psinfo32_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13439,7 +13433,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
-@@ -12585,11 +12922,11 @@
+@@ -12585,11 +12922,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13455,7 +13449,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12611,36 +12948,32 @@
+@@ -12611,36 +12948,32 @@ lwpstatus_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13506,7 +13500,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
-@@ -12650,11 +12983,11 @@
+@@ -12650,11 +12983,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13522,7 +13516,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12676,36 +13009,32 @@
+@@ -12676,36 +13009,32 @@ lwpxstatus_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13573,7 +13567,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
-@@ -12715,11 +13044,11 @@
+@@ -12715,11 +13044,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13589,7 +13583,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12741,36 +13070,32 @@
+@@ -12741,36 +13070,32 @@ lwpstatus_t avar; void* aref = (void*) &
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13640,7 +13634,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
-@@ -12780,11 +13105,11 @@
+@@ -12780,11 +13105,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13656,7 +13650,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12806,36 +13131,32 @@
+@@ -12806,36 +13131,32 @@ lwpstatus_t avar; void* aref = (void*) &
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13707,7 +13701,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
-@@ -12845,11 +13166,11 @@
+@@ -12845,11 +13166,11 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13723,7 +13717,7 @@ Index: binutils-2.17/bfd/configure
   if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -12871,36 +13192,32 @@
+@@ -12871,36 +13192,32 @@ win32_pstatus_t avar
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -13774,7 +13768,7 @@ Index: binutils-2.17/bfd/configure
  fi
  
   if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
-@@ -12910,8 +13227,8 @@
+@@ -12910,8 +13227,8 @@ cat >>confdefs.h <<\_ACEOF
  _ACEOF
  
   fi
@@ -13785,7 +13779,7 @@ Index: binutils-2.17/bfd/configure
  
    fi
  fi
-@@ -13070,6 +13387,7 @@
+@@ -13070,6 +13387,7 @@ do
      bfd_efi_app_ia64_vec)     tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
      bfd_elf32_am33lin_vec)    tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
      bfd_elf32_avr_vec)                tb="$tb elf32-avr.lo elf32.lo $elf" ;;
@@ -13793,7 +13787,7 @@ Index: binutils-2.17/bfd/configure
      bfd_elf32_bfin_vec)               tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
      bfd_elf32_bfinfdpic_vec)  tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
      bfd_elf32_big_generic_vec)        tb="$tb elf32-gen.lo elf32.lo $elf" ;;
-@@ -13389,8 +13707,8 @@
+@@ -13389,8 +13707,8 @@ echo "$as_me: WARNING: your compiler may
      fi
      if test -n "$GCC" ; then
         bad_64bit_gcc=no;
@@ -13804,7 +13798,7 @@ Index: binutils-2.17/bfd/configure
         # Add more tests for gcc versions with non-working 64-bit support here.
         cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
-@@ -13403,11 +13721,11 @@
+@@ -13403,11 +13721,11 @@ _ACEOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
    bad_64bit_gcc=yes;
@@ -13820,7 +13814,7 @@ Index: binutils-2.17/bfd/configure
  fi
  rm -f conftest*
  
-@@ -13445,9 +13763,9 @@
+@@ -13445,9 +13763,9 @@ esac
  for ac_func in ftello ftello64 fseeko fseeko64 fopen64
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -13833,7 +13827,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -13473,68 +13791,60 @@
+@@ -13473,68 +13791,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -13925,7 +13919,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -13544,8 +13854,8 @@
+@@ -13544,8 +13854,8 @@ fi
  done
  
  if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
@@ -13936,7 +13930,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_type_off_t+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -13556,61 +13866,57 @@
+@@ -13556,61 +13866,57 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -14023,7 +14017,7 @@ Index: binutils-2.17/bfd/configure
    if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
  cat >conftest.$ac_ext <<_ACEOF
-@@ -13620,10 +13926,11 @@
+@@ -13620,10 +13926,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -14036,7 +14030,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -13631,27 +13938,22 @@
+@@ -13631,27 +13938,22 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -14075,7 +14069,7 @@ Index: binutils-2.17/bfd/configure
    ac_lo=0 ac_mid=0
    while :; do
      cat >conftest.$ac_ext <<_ACEOF
-@@ -13661,10 +13963,11 @@
+@@ -13661,10 +13963,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -14088,7 +14082,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -13672,56 +13975,53 @@
+@@ -13672,56 +13975,53 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -14167,7 +14161,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -13729,27 +14029,22 @@
+@@ -13729,27 +14029,22 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -14206,7 +14200,7 @@ Index: binutils-2.17/bfd/configure
    ac_hi=-1 ac_mid=-1
    while :; do
      cat >conftest.$ac_ext <<_ACEOF
-@@ -13759,10 +14054,11 @@
+@@ -13759,10 +14054,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -14219,7 +14213,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -13770,50 +14066,48 @@
+@@ -13770,50 +14066,48 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -14294,7 +14288,7 @@ Index: binutils-2.17/bfd/configure
  # Binary search between lo and hi bounds.
  while test "x$ac_lo" != "x$ac_hi"; do
    ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
-@@ -13824,10 +14118,11 @@
+@@ -13824,10 +14118,11 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -14307,7 +14301,7 @@ Index: binutils-2.17/bfd/configure
  test_array [0] = 0
  
    ;
-@@ -13835,52 +14130,45 @@
+@@ -13835,52 +14130,45 @@ test_array [0] = 0
  }
  _ACEOF
  rm -f conftest.$ac_objext
@@ -14381,7 +14375,7 @@ Index: binutils-2.17/bfd/configure
    cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -13888,8 +14176,9 @@
+@@ -13888,8 +14176,9 @@ cat confdefs.h >>conftest.$ac_ext
  cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  $ac_includes_default
@@ -14393,7 +14387,7 @@ Index: binutils-2.17/bfd/configure
  #include <stdio.h>
  #include <stdlib.h>
  int
-@@ -13898,35 +14187,44 @@
+@@ -13898,35 +14187,44 @@ main ()
  
    FILE *f = fopen ("conftest.val", "w");
    if (! f)
@@ -14451,7 +14445,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -13937,30 +14235,33 @@
+@@ -13937,30 +14235,33 @@ echo "$as_me: failed program was:" >&5
  sed 's/^/| /' conftest.$ac_ext >&5
  
  ( exit $ac_status )
@@ -14497,7 +14491,7 @@ Index: binutils-2.17/bfd/configure
  bfd_file_ptr="long"
  bfd_ufile_ptr="unsigned long"
  if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
-@@ -13968,8 +14269,8 @@
+@@ -13968,8 +14269,8 @@ if test x"$ac_cv_func_ftello64" = xyes -
      bfd_file_ptr=BFD_HOST_64_BIT
      bfd_ufile_ptr=BFD_HOST_U_64_BIT
  fi
@@ -14508,7 +14502,7 @@ Index: binutils-2.17/bfd/configure
  
  
  
-@@ -13987,18 +14288,19 @@
+@@ -13987,18 +14288,19 @@ test -n "${havevecs}" && tdefaults="${td
  for ac_header in stdlib.h unistd.h
  do
  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
@@ -14536,7 +14530,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -14009,41 +14311,37 @@
+@@ -14009,41 +14311,37 @@ $ac_includes_default
  #include <$ac_header>
  _ACEOF
  rm -f conftest.$ac_objext
@@ -14596,7 +14590,7 @@ Index: binutils-2.17/bfd/configure
  cat >conftest.$ac_ext <<_ACEOF
  /* confdefs.h.  */
  _ACEOF
-@@ -14052,24 +14350,22 @@
+@@ -14052,24 +14350,22 @@ cat >>conftest.$ac_ext <<_ACEOF
  /* end confdefs.h.  */
  #include <$ac_header>
  _ACEOF
@@ -14632,7 +14626,7 @@ Index: binutils-2.17/bfd/configure
    ac_header_preproc=yes
  else
    echo "$as_me: failed program was:" >&5
-@@ -14077,9 +14373,10 @@
+@@ -14077,9 +14373,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
  
    ac_header_preproc=no
  fi
@@ -14645,7 +14639,7 @@ Index: binutils-2.17/bfd/configure
  
  # So?  What about this header?
  case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-@@ -14103,25 +14400,19 @@
+@@ -14103,25 +14400,19 @@ echo "$as_me: WARNING: $ac_header:     s
  echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
      { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
@@ -14678,7 +14672,7 @@ Index: binutils-2.17/bfd/configure
  
  fi
  if test `eval echo '${'$as_ac_Header'}'` = yes; then
-@@ -14137,9 +14428,9 @@
+@@ -14137,9 +14428,9 @@ done
  for ac_func in getpagesize
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -14691,7 +14685,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -14165,68 +14456,60 @@
+@@ -14165,68 +14456,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -14783,7 +14777,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -14235,8 +14518,8 @@
+@@ -14235,8 +14518,8 @@ _ACEOF
  fi
  done
  
@@ -14794,7 +14788,7 @@ Index: binutils-2.17/bfd/configure
  if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
-@@ -14278,21 +14561,21 @@
+@@ -14278,21 +14561,21 @@ $ac_includes_default
  #include <fcntl.h>
  #include <sys/mman.h>
  
@@ -14820,7 +14814,7 @@ Index: binutils-2.17/bfd/configure
  #   include <sys/param.h>
  #   ifdef EXEC_PAGESIZE
  #    define getpagesize() EXEC_PAGESIZE
-@@ -14331,15 +14614,15 @@
+@@ -14331,15 +14614,15 @@ main ()
    /* First, make a file with some known garbage in it. */
    data = (char *) malloc (pagesize);
    if (!data)
@@ -14839,7 +14833,7 @@ Index: binutils-2.17/bfd/configure
    close (fd);
  
    /* Next, try to mmap the file at a fixed address which already has
-@@ -14347,17 +14630,17 @@
+@@ -14347,17 +14630,17 @@ main ()
       we see the same garbage.  */
    fd = open ("conftest.mmap", O_RDWR);
    if (fd < 0)
@@ -14862,7 +14856,7 @@ Index: binutils-2.17/bfd/configure
  
    /* Finally, make sure that changes to the mapped area do not
       percolate back to the file as seen by read().  (This is a bug on
-@@ -14366,24 +14649,33 @@
+@@ -14366,24 +14649,33 @@ main ()
      *(data2 + i) = *(data2 + i) + 1;
    data3 = (char *) malloc (pagesize);
    if (!data3)
@@ -14904,7 +14898,7 @@ Index: binutils-2.17/bfd/configure
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
    (exit $ac_status); }; }; then
-@@ -14396,11 +14688,13 @@
+@@ -14396,11 +14688,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
  ( exit $ac_status )
  ac_cv_func_mmap_fixed_mapped=no
  fi
@@ -14921,7 +14915,7 @@ Index: binutils-2.17/bfd/configure
  if test $ac_cv_func_mmap_fixed_mapped = yes; then
  
  cat >>confdefs.h <<\_ACEOF
-@@ -14415,9 +14709,9 @@
+@@ -14415,9 +14709,9 @@ rm -f conftest.mmap
  for ac_func in madvise mprotect
  do
  as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
@@ -14934,7 +14928,7 @@ Index: binutils-2.17/bfd/configure
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    cat >conftest.$ac_ext <<_ACEOF
-@@ -14443,68 +14737,60 @@
+@@ -14443,68 +14737,60 @@ cat >>conftest.$ac_ext <<_ACEOF
  
  #undef $ac_func
  
@@ -15026,7 +15020,7 @@ Index: binutils-2.17/bfd/configure
  if test `eval echo '${'$as_ac_var'}'` = yes; then
    cat >>confdefs.h <<_ACEOF
  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-@@ -14522,9 +14808,9 @@
+@@ -14522,9 +14808,9 @@ _ACEOF
  esac
  
  rm -f doc/config.status
@@ -15038,7 +15032,7 @@ Index: binutils-2.17/bfd/configure
  
  
  
-@@ -14549,39 +14835,58 @@
+@@ -14549,39 +14835,58 @@ _ACEOF
  
  # The following way of writing the cache mishandles newlines in values,
  # but we know of no workaround that is simple, portable, and efficient.
@@ -15113,7 +15107,7 @@ Index: binutils-2.17/bfd/configure
    fi
  fi
  rm -f confcache
-@@ -14590,32 +14895,18 @@
+@@ -14590,32 +14895,18 @@ test "x$prefix" = xNONE && prefix=$ac_de
  # Let make expand exec_prefix.
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  
@@ -15152,7 +15146,7 @@ Index: binutils-2.17/bfd/configure
  done
  LIBOBJS=$ac_libobjs
  
-@@ -14674,17 +14965,45 @@
+@@ -14674,17 +14965,45 @@ cat >>$CONFIG_STATUS <<\_ACEOF
  ## M4sh Initialization.  ##
  ## --------------------- ##
  
@@ -15202,7 +15196,7 @@ Index: binutils-2.17/bfd/configure
  
  # Support unset when possible.
  if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-@@ -14694,8 +15013,43 @@
+@@ -14694,8 +15013,43 @@ else
  fi
  
  
@@ -15247,7 +15241,7 @@ Index: binutils-2.17/bfd/configure
  PS1='$ '
  PS2='> '
  PS4='+ '
-@@ -14709,18 +15063,19 @@
+@@ -14709,18 +15063,19 @@ do
    if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
      eval $as_var=C; export $as_var
    else
@@ -15270,7 +15264,7 @@ Index: binutils-2.17/bfd/configure
    as_basename=basename
  else
    as_basename=false
-@@ -14728,159 +15083,120 @@
+@@ -14728,159 +15083,120 @@ fi
  
  
  # Name of the executable.
@@ -15501,7 +15495,7 @@ Index: binutils-2.17/bfd/configure
  
  if mkdir -p . 2>/dev/null; then
    as_mkdir_p=:
-@@ -14889,7 +15205,28 @@
+@@ -14889,7 +15205,28 @@ else
    as_mkdir_p=false
  fi
  
@@ -15531,7 +15525,7 @@ Index: binutils-2.17/bfd/configure
  
  # Sed expression to map a string onto a valid CPP name.
  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-@@ -14898,31 +15235,14 @@
+@@ -14898,31 +15235,14 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  
  
@@ -15567,7 +15561,7 @@ Index: binutils-2.17/bfd/configure
  
    CONFIG_FILES    = $CONFIG_FILES
    CONFIG_HEADERS  = $CONFIG_HEADERS
-@@ -14930,30 +15250,20 @@
+@@ -14930,30 +15250,20 @@ generated by GNU Autoconf 2.59.  Invocat
    CONFIG_COMMANDS = $CONFIG_COMMANDS
    $ $0 $@
  
@@ -15606,7 +15600,7 @@ Index: binutils-2.17/bfd/configure
  ac_cs_usage="\
  \`$as_me' instantiates files from templates according to the
  current configuration.
-@@ -14961,7 +15271,7 @@
+@@ -14961,7 +15271,7 @@ current configuration.
  Usage: $0 [OPTIONS] [FILE]...
  
    -h, --help       print this help, then exit
@@ -15615,7 +15609,7 @@ Index: binutils-2.17/bfd/configure
    -q, --quiet      do not print progress messages
    -d, --debug      don't remove temporary files
        --recheck    update $as_me by reconfiguring in the same conditions
-@@ -14980,19 +15290,21 @@
+@@ -14980,19 +15290,21 @@ Configuration commands:
  $config_commands
  
  Report bugs to <bug-autoconf@gnu.org>."
@@ -15643,7 +15637,7 @@ Index: binutils-2.17/bfd/configure
  _ACEOF
  
  cat >>$CONFIG_STATUS <<\_ACEOF
-@@ -15003,39 +15315,24 @@
+@@ -15003,39 +15315,24 @@ while test $# != 0
  do
    case $1 in
    --*=*)
@@ -15689,7 +15683,7 @@ Index: binutils-2.17/bfd/configure
      debug=: ;;
    --file | --fil | --fi | --f )
      $ac_shift
-@@ -15045,18 +15342,24 @@
+@@ -15045,18 +15342,24 @@ Try \`$0 --help' for more information." 
      $ac_shift
      CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
      ac_need_defaults=false;;
@@ -15719,7 +15713,7 @@ Index: binutils-2.17/bfd/configure
  
    esac
    shift
-@@ -15072,42 +15375,54 @@
+@@ -15072,42 +15375,54 @@ fi
  _ACEOF
  cat >>$CONFIG_STATUS <<_ACEOF
  if \$ac_cs_recheck; then
@@ -15789,7 +15783,7 @@ Index: binutils-2.17/bfd/configure
  # If the user did not use the arguments to specify the items to instantiate,
  # then the envvar interface is used.  Set only those that are not.
  # We use the long form for the default assignment because of an extremely
-@@ -15119,401 +15434,504 @@
+@@ -15119,401 +15434,504 @@ if $ac_need_defaults; then
  fi
  
  # Have a temporary directory for convenience.  Make it in the build tree
@@ -16635,7 +16629,7 @@ Index: binutils-2.17/bfd/configure
  cat >>$CONFIG_STATUS <<_ACEOF
    sed "$ac_vpsub
  $extrasub
-@@ -15521,248 +15939,130 @@
+@@ -15521,248 +15939,130 @@ _ACEOF
  cat >>$CONFIG_STATUS <<\_ACEOF
  :t
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
@@ -16986,7 +16980,7 @@ Index: binutils-2.17/bfd/configure
  # Compute $ac_file's index in $config_headers.
  _am_stamp_count=1
  for _am_header in $config_headers :; do
-@@ -15773,135 +16073,39 @@
+@@ -15773,135 +16073,39 @@ for _am_header in $config_headers :; do
        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
    esac
  done
@@ -17148,7 +17142,7 @@ Index: binutils-2.17/bfd/configure
    # Strip MF so we end up with the name of the file.
    mf=`echo "$mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile or not.
-@@ -15911,18 +16115,29 @@
+@@ -15911,18 +16115,29 @@ echo "$as_me: executing $ac_dest command
    # each Makefile.in and add a new line on top of each file to say so.
    # So let's grep whole file.
    if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
@@ -17186,7 +17180,7 @@ Index: binutils-2.17/bfd/configure
    else
      continue
    fi
-@@ -15944,54 +16159,80 @@
+@@ -15944,54 +16159,80 @@ echo X"$mf" |
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
      # Make sure the directory exists.
      test -f "$dirpart/$file" && continue
@@ -17297,31 +17291,9 @@ Index: binutils-2.17/bfd/configure
  
  { (exit 0); exit 0; }
  _ACEOF
-Index: binutils-2.17/bfd/configure.in
-===================================================================
---- binutils-2.17.orig/bfd/configure.in        2007-06-28 09:19:34.170041816 +0200
-+++ binutils-2.17/bfd/configure.in     2007-06-28 09:19:36.576675952 +0200
-@@ -8,7 +8,7 @@
- AC_CANONICAL_TARGET
- AC_ISC_POSIX
--AM_INIT_AUTOMAKE(bfd, 2.17)
-+AM_INIT_AUTOMAKE(bfd, 2.17.atmel.0.0.99)
- dnl These must be called before AM_PROG_LIBTOOL, because it may want
- dnl to call AC_CHECK_PROG.
-@@ -583,6 +583,7 @@
-     bfd_efi_app_ia64_vec)     tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
-     bfd_elf32_am33lin_vec)    tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
-     bfd_elf32_avr_vec)                tb="$tb elf32-avr.lo elf32.lo $elf" ;;
-+    bfd_elf32_avr32_vec)      tb="$tb elf32-avr32.lo elf32.lo $elf" ;;
-     bfd_elf32_bfin_vec)               tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
-     bfd_elf32_bfinfdpic_vec)  tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
-     bfd_elf32_big_generic_vec)        tb="$tb elf32-gen.lo elf32.lo $elf" ;;
-Index: binutils-2.17/bfd/cpu-avr32.c
-===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.17/bfd/cpu-avr32.c      2007-06-28 09:19:36.576675952 +0200
+diff -Nrup binutils-2.17/bfd/cpu-avr32.c binutils-2.17.atmel.1.3.0/bfd/cpu-avr32.c
+--- binutils-2.17/bfd/cpu-avr32.c      1970-01-01 01:00:00.000000000 +0100
++++ binutils-2.17.atmel.1.3.0/bfd/cpu-avr32.c  2007-05-31 17:03:36.000000000 +0200
 @@ -0,0 +1,49 @@
 +/* BFD library support routines for AVR32.
 +   Copyright 2003-2006 Atmel Corporation.
@@ -17371,18 +17343,160 @@ Index: binutils-2.17/bfd/cpu-avr32.c
 +};
 +
 +const bfd_arch_info_type bfd_avr32_arch =
-+  N(bfd_mach_avr32_ap, "avr32:ap", TRUE, &cpu_info[0]);
-Index: binutils-2.17/bfd/doc/Makefile.in
-===================================================================
---- binutils-2.17.orig/bfd/doc/Makefile.in     2007-06-28 09:19:34.180040296 +0200
-+++ binutils-2.17/bfd/doc/Makefile.in  2007-06-28 09:19:36.577675800 +0200
++  N(bfd_mach_avr32_ap, "avr32", TRUE, &cpu_info[0]);
+diff -Nrup binutils-2.17/bfd/doc/bfd.info binutils-2.17.atmel.1.3.0/bfd/doc/bfd.info
+--- binutils-2.17/bfd/doc/bfd.info     2006-06-12 15:37:32.000000000 +0200
++++ binutils-2.17.atmel.1.3.0/bfd/doc/bfd.info 2007-03-26 10:34:02.000000000 +0200
+@@ -1,5 +1,7 @@
+-This is ../.././bfd/doc/bfd.info, produced by makeinfo version 4.8 from
+-../.././bfd/doc/bfd.texinfo.
++This is
++/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.info,
++produced by makeinfo version 4.8 from
++/home/hcegtvedt/svnwork/tools/T0243-GNU_Toolchain/50-Source/binutils/trunk/bfd/doc/bfd.texinfo.
+ START-INFO-DIR-ENTRY
+ * Bfd: (bfd).                   The Binary File Descriptor library.
+@@ -10239,67 +10241,67 @@ Index
\1f
+ Tag Table:
+-Node: Top\7f724
+-Node: Overview\7f1056
+-Node: History\7f2107
+-Node: How It Works\7f3053
+-Node: What BFD Version 2 Can Do\7f4595
+-Node: BFD information loss\7f5910
+-Node: Canonical format\7f8442
+-Node: BFD front end\7f12814
+-Node: Memory Usage\7f38428
+-Node: Initialization\7f39656
+-Node: Sections\7f40115
+-Node: Section Input\7f40598
+-Node: Section Output\7f41963
+-Node: typedef asection\7f44449
+-Node: section prototypes\7f69406
+-Node: Symbols\7f79086
+-Node: Reading Symbols\7f80681
+-Node: Writing Symbols\7f81788
+-Node: Mini Symbols\7f83497
+-Node: typedef asymbol\7f84471
+-Node: symbol handling functions\7f89389
+-Node: Archives\7f94731
+-Node: Formats\7f98457
+-Node: Relocations\7f101405
+-Node: typedef arelent\7f102132
+-Node: howto manager\7f117943
+-Node: Core Files\7f180223
+-Node: Targets\7f182040
+-Node: bfd_target\7f184010
+-Node: Architectures\7f204090
+-Node: Opening and Closing\7f225522
+-Node: Internal\7f236524
+-Node: File Caching\7f242857
+-Node: Linker Functions\7f244771
+-Node: Creating a Linker Hash Table\7f246444
+-Node: Adding Symbols to the Hash Table\7f248182
+-Node: Differing file formats\7f249082
+-Node: Adding symbols from an object file\7f250830
+-Node: Adding symbols from an archive\7f252981
+-Node: Performing the Final Link\7f255395
+-Node: Information provided by the linker\7f256637
+-Node: Relocating the section contents\7f257791
+-Node: Writing the symbol table\7f259542
+-Node: Hash Tables\7f262535
+-Node: Creating and Freeing a Hash Table\7f263733
+-Node: Looking Up or Entering a String\7f264983
+-Node: Traversing a Hash Table\7f266236
+-Node: Deriving a New Hash Table Type\7f267025
+-Node: Define the Derived Structures\7f268091
+-Node: Write the Derived Creation Routine\7f269172
+-Node: Write Other Derived Routines\7f271796
+-Node: BFD back ends\7f273111
+-Node: What to Put Where\7f273381
+-Node: aout\7f273519
+-Node: coff\7f279837
+-Node: elf\7f304314
+-Node: mmo\7f305177
+-Node: File layout\7f306105
+-Node: Symbol-table\7f311752
+-Node: mmo section mapping\7f315521
+-Node: GNU Free Documentation License\7f319173
+-Node: Index\7f338898
++Node: Top\7f858
++Node: Overview\7f1190
++Node: History\7f2241
++Node: How It Works\7f3187
++Node: What BFD Version 2 Can Do\7f4729
++Node: BFD information loss\7f6044
++Node: Canonical format\7f8576
++Node: BFD front end\7f12948
++Node: Memory Usage\7f38562
++Node: Initialization\7f39790
++Node: Sections\7f40249
++Node: Section Input\7f40732
++Node: Section Output\7f42097
++Node: typedef asection\7f44583
++Node: section prototypes\7f69540
++Node: Symbols\7f79220
++Node: Reading Symbols\7f80815
++Node: Writing Symbols\7f81922
++Node: Mini Symbols\7f83631
++Node: typedef asymbol\7f84605
++Node: symbol handling functions\7f89523
++Node: Archives\7f94865
++Node: Formats\7f98591
++Node: Relocations\7f101539
++Node: typedef arelent\7f102266
++Node: howto manager\7f118077
++Node: Core Files\7f180357
++Node: Targets\7f182174
++Node: bfd_target\7f184144
++Node: Architectures\7f204224
++Node: Opening and Closing\7f225656
++Node: Internal\7f236658
++Node: File Caching\7f242991
++Node: Linker Functions\7f244905
++Node: Creating a Linker Hash Table\7f246578
++Node: Adding Symbols to the Hash Table\7f248316
++Node: Differing file formats\7f249216
++Node: Adding symbols from an object file\7f250964
++Node: Adding symbols from an archive\7f253115
++Node: Performing the Final Link\7f255529
++Node: Information provided by the linker\7f256771
++Node: Relocating the section contents\7f257925
++Node: Writing the symbol table\7f259676
++Node: Hash Tables\7f262669
++Node: Creating and Freeing a Hash Table\7f263867
++Node: Looking Up or Entering a String\7f265117
++Node: Traversing a Hash Table\7f266370
++Node: Deriving a New Hash Table Type\7f267159
++Node: Define the Derived Structures\7f268225
++Node: Write the Derived Creation Routine\7f269306
++Node: Write Other Derived Routines\7f271930
++Node: BFD back ends\7f273245
++Node: What to Put Where\7f273515
++Node: aout\7f273653
++Node: coff\7f279971
++Node: elf\7f304448
++Node: mmo\7f305311
++Node: File layout\7f306239
++Node: Symbol-table\7f311886
++Node: mmo section mapping\7f315655
++Node: GNU Free Documentation License\7f319307
++Node: Index\7f339032
\1f
+ End Tag Table
+diff -Nrup binutils-2.17/bfd/doc/Makefile.in binutils-2.17.atmel.1.3.0/bfd/doc/Makefile.in
+--- binutils-2.17/bfd/doc/Makefile.in  2006-04-06 23:49:26.000000000 +0200
++++ binutils-2.17.atmel.1.3.0/bfd/doc/Makefile.in      2007-03-26 10:30:55.000000000 +0200
 @@ -1,4 +1,4 @@
 -# Makefile.in generated by automake 1.9.5 from Makefile.am.
 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
  # @configure_input@
  
  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-@@ -105,6 +105,7 @@
+@@ -105,6 +105,7 @@ EXEEXT = @EXEEXT@
  EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  GMOFILES = @GMOFILES@
  GMSGFMT = @GMSGFMT@
@@ -17390,7 +17504,7 @@ Index: binutils-2.17/bfd/doc/Makefile.in
  GT_NO = @GT_NO@
  GT_YES = @GT_YES@
  HDEFINES = @HDEFINES@
-@@ -154,10 +155,7 @@
+@@ -154,10 +155,7 @@ WARN_CFLAGS = @WARN_CFLAGS@
  WIN32LDFLAGS = @WIN32LDFLAGS@
  WIN32LIBADD = @WIN32LIBADD@
  XGETTEXT = @XGETTEXT@
@@ -17401,7 +17515,7 @@ Index: binutils-2.17/bfd/doc/Makefile.in
  all_backends = @all_backends@
  am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-@@ -183,6 +181,7 @@
+@@ -183,6 +181,7 @@ build_vendor = @build_vendor@
  datadir = @datadir@
  datarootdir = @datarootdir@
  docdir = @docdir@
@@ -17409,7 +17523,7 @@ Index: binutils-2.17/bfd/doc/Makefile.in
  exec_prefix = @exec_prefix@
  host = @host@
  host_alias = @host_alias@
-@@ -197,12 +196,15 @@
+@@ -197,12 +196,15 @@ install_sh = @install_sh@
  l = @l@
  libdir = @libdir@
  libexecdir = @libexecdir@
@@ -17425,7 +17539,7 @@ Index: binutils-2.17/bfd/doc/Makefile.in
  sbindir = @sbindir@
  sharedstatedir = @sharedstatedir@
  sysconfdir = @sysconfdir@
-@@ -364,9 +366,11 @@
+@@ -364,9 +366,11 @@ distclean-libtool:
        restore=: && backupdir="$(am__leading_dot)am$$$$" && \
        am__cwd=`pwd` && cd $(srcdir) && \
        rm -rf $$backupdir && mkdir $$backupdir && \
@@ -17440,7 +17554,7 @@ Index: binutils-2.17/bfd/doc/Makefile.in
        cd "$$am__cwd"; \
        if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \
         -o $@ $<; \
-@@ -408,6 +412,7 @@
+@@ -408,6 +412,7 @@ bfd.dvi: bfd.texinfo 
  bfd.pdf: bfd.texinfo 
  bfd.html: bfd.texinfo 
  .dvi.ps:
@@ -17448,7 +17562,7 @@ Index: binutils-2.17/bfd/doc/Makefile.in
        $(DVIPS) -o $@ $<
  
  uninstall-info-am:
-@@ -440,10 +445,13 @@
+@@ -440,10 +445,13 @@ dist-info: $(INFO_DEPS)
            $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \
          esac; \
          if test -f $$base; then d=.; else d=$(srcdir); fi; \
@@ -17466,11 +17580,10 @@ Index: binutils-2.17/bfd/doc/Makefile.in
          done; \
        done
  
-Index: binutils-2.17/bfd/elf32-avr32.c
-===================================================================
---- /dev/null  1970-01-01 00:00:00.000000000 +0000
-+++ binutils-2.17/bfd/elf32-avr32.c    2007-06-28 09:19:36.580675344 +0200
-@@ -0,0 +1,3847 @@
+diff -Nrup binutils-2.17/bfd/elf32-avr32.c binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c
+--- binutils-2.17/bfd/elf32-avr32.c    1970-01-01 01:00:00.000000000 +0100
++++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c        2007-09-28 10:30:44.000000000 +0200
+@@ -0,0 +1,3881 @@
 +/* AVR32-specific support for 32-bit ELF.
 +   Copyright 2003-2006 Atmel Corporation.
 +
@@ -17498,6 +17611,7 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +#include "libbfd.h"
 +#include "elf-bfd.h"
 +#include "elf/avr32.h"
++#include "elf32-avr32.h"
 +
 +#define xDEBUG
 +#define xRELAX_DEBUG
@@ -17771,7 +17885,6 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  /* Shortcuts to get to dynamic linker sections.  */
 +  asection *sgot;
 +  asection *srelgot;
-+  asection *sreldyn;
 +  asection *sstub;
 +
 +  /* We use a variation of Pigeonhole Sort to sort the GOT.  After the
@@ -17793,6 +17906,7 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  bfd_boolean relocations_analyzed;
 +  bfd_boolean symbols_adjusted;
 +  bfd_boolean repeat_pass;
++  bfd_boolean direct_data_refs;
 +  unsigned int relax_iteration;
 +  unsigned int relax_pass;
 +};
@@ -17868,6 +17982,8 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  /* Prevent the BFD core from creating bogus got_entry pointers */
 +  ret->root.init_got_refcount.glist = NULL;
 +  ret->root.init_plt_refcount.glist = NULL;
++  ret->root.init_got_offset.glist = NULL;
++  ret->root.init_plt_offset.glist = NULL;
 +
 +  return &ret->root.root;
 +}
@@ -17944,8 +18060,9 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +    return TRUE;
 +
 +  htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
-+  htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
-+                                       flags | SEC_READONLY, 2);
++  if (!htab->srelgot)
++    htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
++                                         flags | SEC_READONLY, 2);
 +
 +  if (!htab->sgot || !htab->srelgot)
 +    return FALSE;
@@ -17979,14 +18096,11 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  if (!avr32_elf_create_got_section (dynobj, info))
 +    return FALSE;
 +
-+  if (!htab->sreldyn)
-+    htab->sreldyn = create_dynamic_section(dynobj, ".rela.dyn",
-+                                         flags | SEC_READONLY, 2);
 +  if (!htab->sstub)
 +    htab->sstub = create_dynamic_section(dynobj, ".stub",
 +                                       flags | SEC_READONLY | SEC_CODE, 2);
 +
-+  if (!htab->sreldyn || !htab->sstub)
++  if (!htab->sstub)
 +    return FALSE;
 +
 +  return TRUE;
@@ -18142,12 +18256,12 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +        if ((info->shared || h != NULL)
 +            && (sec->flags & SEC_ALLOC))
 +          {
-+            if (htab->sreldyn == NULL)
++            if (htab->srelgot == NULL)
 +              {
-+                htab->sreldyn = create_dynamic_section(dynobj, ".rela.dyn",
++                htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
 +                                                       bed->dynamic_sec_flags
 +                                                       | SEC_READONLY, 2);
-+                if (htab->sreldyn == NULL)
++                if (htab->srelgot == NULL)
 +                  return FALSE;
 +              }
 +
@@ -18535,7 +18649,7 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +    {
 +      pr_debug("Allocating %d dynamic reloc against symbol %s...\n",
 +             havr->possibly_dynamic_relocs, h->root.root.string);
-+      htab->sreldyn->size += (havr->possibly_dynamic_relocs
++      htab->srelgot->size += (havr->possibly_dynamic_relocs
 +                            * sizeof(Elf32_External_Rela));
 +    }
 +
@@ -18629,7 +18743,7 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  /* Allocate space for local sym dynamic relocs */
 +  BFD_ASSERT(htab->local_dynamic_relocs == 0 || info->shared);
 +  if (htab->local_dynamic_relocs)
-+    htab->sreldyn->size += (htab->local_dynamic_relocs
++    htab->srelgot->size += (htab->local_dynamic_relocs
 +                          * sizeof(Elf32_External_Rela));
 +
 +  /* We now have determined the sizes of the various dynamic
@@ -18858,6 +18972,8 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  RS_NOPIC_LDW4,
 +  RS_NOPIC_LDDPC,
 +  RS_NOPIC_SUB5,
++  RS_NOPIC_MOV2,
++  RS_NOPIC_MOV1,
 +  RS_RCALL2,
 +  RS_RCALL1,
 +  RS_BRC2,
@@ -18998,6 +19114,15 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +#define LDDPC_RANGE_MIN               0
 +#define LDDPC_RANGE_MAX               508
 +
++#define NOPIC_MOV2_OPCODE  0xe0600000
++#define NOPIC_MOV2_MASK        0xe1e00000
++#define NOPIC_MOV2_RANGE_MIN   (-1048576)
++#define NOPIC_MOV2_RANGE_MAX   (1048575)
++#define NOPIC_MOV1_OPCODE  0x30000000
++#define NOPIC_MOV1_MASK        0xf0000000
++#define NOPIC_MOV1_RANGE_MIN   (-128)
++#define NOPIC_MOV1_RANGE_MAX   (127)
++
 +/* Only brc2 variants with cond[3] == 0 is considered, since the
 +   others are not relaxable.  bral is a special case and is handled
 +   separately.  */
@@ -19035,6 +19160,12 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +      R_AVR32_##r_type,       opc##_OPCODE, opc##_MASK,                       \
 +      opc##_RANGE_MIN, opc##_RANGE_MAX, size }
 +
++/* Define a relax state using non-pc-relative direct reference */
++#define RD(id, dir, next, prev, r_type, opc, size)         \
++  { "RS_"#id, RS_##id, RS_##dir, RS_##next, RS_##prev, REF_ABSOLUTE,   \
++      R_AVR32_##r_type,    opc##_OPCODE, opc##_MASK,           \
++      opc##_RANGE_MIN, opc##_RANGE_MAX, size }
++
 +/* Define a relax state that will be handled specially  */
 +#define RS(id, r_type, size)                                          \
 +  { "RS_"#id, RS_##id, RS_NONE, RS_NONE, RS_NONE, REF_ABSOLUTE,               \
@@ -19059,9 +19190,11 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  RP(NOPIC_RCALL2, NONE, NOPIC_RCALL1, NOPIC_MCALL, 22H_PCREL, RCALL2, 4),
 +  RP(NOPIC_RCALL1, NONE, NONE, NOPIC_RCALL2, 11H_PCREL, RCALL1, 2),
 +
-+  RC(NOPIC_LDW4, NOPIC_SUB5, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
-+  RC(NOPIC_LDDPC, NOPIC_SUB5, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
-+  RP(NOPIC_SUB5, NONE, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
++  RC(NOPIC_LDW4, NOPIC_MOV1, NOPIC_LDDPC, NONE, 16_CP, NOPIC_LDW4, 4),
++  RC(NOPIC_LDDPC, NOPIC_MOV1, NONE, NOPIC_LDW4, 9W_CP, LDDPC, 2),
++  RP(NOPIC_SUB5, NOPIC_MOV1, NONE, NOPIC_LDDPC, 16N_PCREL, SUB5_PC, 4),
++  RD(NOPIC_MOV2, NONE, NOPIC_MOV1, NOPIC_SUB5, 21S, NOPIC_MOV2, 4),
++  RD(NOPIC_MOV1, NONE, NONE, NOPIC_MOV2, 8S, NOPIC_MOV1, 2),
 +
 +  RP(RCALL2, NONE, RCALL1, NONE, 22H_PCREL, RCALL2, 4),
 +  RP(RCALL1, NONE, NONE, RCALL2, 11H_PCREL, RCALL1, 2),
@@ -19922,9 +20055,14 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +           after the relaxation code is done, so we can't really
 +           trust that our "distance" is correct.  There's really no
 +           easy solution to this problem, so we'll just disallow
-+           direct references to SEC_DATA sections.  */
++           direct references to SEC_DATA sections.
++           
++           Oh, and .bss isn't actually SEC_DATA, so we disallow
++           !SEC_HAS_CONTENTS as well. */
 +        if (!dynamic && defined
-+            && !(sym_sec->flags & SEC_DATA)
++            && (htab->direct_data_refs
++                || (!(sym_sec->flags & SEC_DATA)
++                    && (sym_sec->flags & SEC_HAS_CONTENTS)))
 +            && next_state->direct)
 +          {
 +            next_state = &relax_state[next_state->direct];
@@ -20664,7 +20802,6 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  struct got_entry **local_got_ents;
 +  asection *sgot;
 +  asection *srelgot;
-+  asection *sreldyn;
 +
 +  pr_debug("(6) relocate section %s:<%s> (size 0x%lx)\n",
 +         input_bfd->filename, input_section->name, input_section->size);
@@ -20680,7 +20817,6 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  local_got_ents = elf_local_got_ents(input_bfd);
 +  sgot = htab->sgot;
 +  srelgot = htab->srelgot;
-+  sreldyn = htab->sreldyn;
 +
 +  relend = relocs + input_section->reloc_count;
 +  for (rel = relocs; rel < relend; rel++)
@@ -20917,15 +21053,15 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +                  }
 +              }
 +
-+            pr_debug("sreldyn reloc_count: %d, size %lu\n",
-+                     sreldyn->reloc_count, sreldyn->size);
++            pr_debug("srelgot reloc_count: %d, size %lu\n",
++                     srelgot->reloc_count, srelgot->size);
 +
-+            loc = sreldyn->contents;
-+            loc += sreldyn->reloc_count++ * sizeof(Elf32_External_Rela);
++            loc = srelgot->contents;
++            loc += srelgot->reloc_count++ * sizeof(Elf32_External_Rela);
 +            bfd_elf32_swap_reloca_out(output_bfd, &outrel, loc);
 +
-+            BFD_ASSERT(sreldyn->reloc_count * sizeof(Elf32_External_Rela)
-+                       <= sreldyn->size);
++            BFD_ASSERT(srelgot->reloc_count * sizeof(Elf32_External_Rela)
++                       <= srelgot->size);
 +
 +            if (!relocate)
 +              continue;
@@ -21212,6 +21348,17 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +  return TRUE;
 +}
 +
++/* Set avr32-specific linker options.  */
++void bfd_elf32_avr32_set_options(struct bfd_link_info *info,
++                               int direct_data_refs)
++{
++  struct elf_avr32_link_hash_table *htab;
++
++  htab = avr32_elf_hash_table (info);
++  htab->direct_data_refs = !!direct_data_refs;
++}
++
++
 +\f
 +/* Understanding core dumps */
 +
@@ -21318,36308 +21465,24692 @@ Index: binutils-2.17/bfd/elf32-avr32.c
 +#define elf_backend_got_header_size   AVR32_GOT_HEADER_SIZE
 +
 +#include "elf32-target.h"
-Index: binutils-2.17/bfd/elf-bfd.h
-===================================================================
---- binutils-2.17.orig/bfd/elf-bfd.h   2007-06-28 09:19:34.190038776 +0200
-+++ binutils-2.17/bfd/elf-bfd.h        2007-06-28 09:19:36.581675192 +0200
-@@ -1307,6 +1307,10 @@
-      find_nearest_line.  */
-   struct mips_elf_find_line *find_line_info;
-+  /* Used by AVR32 ELF relaxation code.  Contains an array of pointers
-+     for each local symbol to the fragment where it is defined.  */
-+  struct fragment **local_sym_frag;
+diff -Nrup binutils-2.17/bfd/elf32-avr32.c.orig binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c.orig
+--- binutils-2.17/bfd/elf32-avr32.c.orig       1970-01-01 01:00:00.000000000 +0100
++++ binutils-2.17.atmel.1.3.0/bfd/elf32-avr32.c.orig   2007-05-31 17:03:36.000000000 +0200
+@@ -0,0 +1,3880 @@
++/* AVR32-specific support for 32-bit ELF.
++   Copyright 2003-2006 Atmel Corporation.
 +
-   /* A place to stash dwarf1 info for this bfd.  */
-   struct dwarf1_debug *dwarf1_find_line_info;
-Index: binutils-2.17/bfd/libbfd.h
-===================================================================
---- binutils-2.17.orig/bfd/libbfd.h    2007-06-28 09:19:34.195038016 +0200
-+++ binutils-2.17/bfd/libbfd.h 2007-06-28 09:19:36.582675040 +0200
-@@ -1518,6 +1518,47 @@
-   "BFD_RELOC_AVR_LDI",
-   "BFD_RELOC_AVR_6",
-   "BFD_RELOC_AVR_6_ADIW",
-+  "BFD_RELOC_AVR32_DIFF32",
-+  "BFD_RELOC_AVR32_DIFF16",
-+  "BFD_RELOC_AVR32_DIFF8",
-+  "BFD_RELOC_AVR32_GOT32",
-+  "BFD_RELOC_AVR32_GOT16",
-+  "BFD_RELOC_AVR32_GOT8",
-+  "BFD_RELOC_AVR32_21S",
-+  "BFD_RELOC_AVR32_16U",
-+  "BFD_RELOC_AVR32_16S",
-+  "BFD_RELOC_AVR32_SUB5",
-+  "BFD_RELOC_AVR32_8S_EXT",
-+  "BFD_RELOC_AVR32_8S",
-+  "BFD_RELOC_AVR32_22H_PCREL",
-+  "BFD_RELOC_AVR32_18W_PCREL",
-+  "BFD_RELOC_AVR32_16B_PCREL",
-+  "BFD_RELOC_AVR32_16N_PCREL",
-+  "BFD_RELOC_AVR32_14UW_PCREL",
-+  "BFD_RELOC_AVR32_11H_PCREL",
-+  "BFD_RELOC_AVR32_10UW_PCREL",
-+  "BFD_RELOC_AVR32_9H_PCREL",
-+  "BFD_RELOC_AVR32_9UW_PCREL",
-+  "BFD_RELOC_AVR32_GOTPC",
-+  "BFD_RELOC_AVR32_GOTCALL",
-+  "BFD_RELOC_AVR32_LDA_GOT",
-+  "BFD_RELOC_AVR32_GOT21S",
-+  "BFD_RELOC_AVR32_GOT18SW",
-+  "BFD_RELOC_AVR32_GOT16S",
-+  "BFD_RELOC_AVR32_32_CPENT",
-+  "BFD_RELOC_AVR32_CPCALL",
-+  "BFD_RELOC_AVR32_16_CP",
-+  "BFD_RELOC_AVR32_9W_CP",
-+  "BFD_RELOC_AVR32_ALIGN",
-+  "BFD_RELOC_AVR32_14UW",
-+  "BFD_RELOC_AVR32_10UW",
-+  "BFD_RELOC_AVR32_10SW",
-+  "BFD_RELOC_AVR32_STHH_W",
-+  "BFD_RELOC_AVR32_7UW",
-+  "BFD_RELOC_AVR32_6S",
-+  "BFD_RELOC_AVR32_6UW",
-+  "BFD_RELOC_AVR32_4UH",
-+  "BFD_RELOC_AVR32_3U",
-   "BFD_RELOC_390_12",
-   "BFD_RELOC_390_GOT12",
-   "BFD_RELOC_390_PLT32",
-Index: binutils-2.17/bfd/Makefile.am
-===================================================================
---- binutils-2.17.orig/bfd/Makefile.am 2007-06-28 09:19:34.201037104 +0200
-+++ binutils-2.17/bfd/Makefile.am      2007-06-28 09:19:36.583674888 +0200
-@@ -3,7 +3,7 @@
- AUTOMAKE_OPTIONS = 1.9 cygnus
- # Uncomment the following line when doing a release.
--RELEASE=y
-+# RELEASE=y
- INCDIR = $(srcdir)/../include
- CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
-@@ -62,6 +62,7 @@
-       cpu-arc.lo \
-       cpu-arm.lo \
-       cpu-avr.lo \
-+      cpu-avr32.lo \
-       cpu-bfin.lo \
-       cpu-cr16c.lo \
-       cpu-cris.lo \
-@@ -234,6 +235,7 @@
-       elf32-arc.lo \
-       elf32-arm.lo \
-       elf32-avr.lo \
-+      elf32-avr32.lo \
-       elf32-bfin.lo \
-       elf32-cr16c.lo \
-       elf32-cris.lo \
-@@ -1265,6 +1267,10 @@
-   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
-   $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
-   $(INCDIR)/elf/reloc-macros.h elf32-target.h
-+elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
-+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
-+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
-+  elf32-target.h
- elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
-   $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
-   $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
-Index: binutils-2.17/bfd/Makefile.in
-===================================================================
---- binutils-2.17.orig/bfd/Makefile.in 2007-06-28 09:19:34.206036344 +0200
-+++ binutils-2.17/bfd/Makefile.in      2007-06-28 09:19:36.584674736 +0200
-@@ -1,4 +1,4 @@
--# Makefile.in generated by automake 1.9.5 from Makefile.am.
-+# Makefile.in generated by automake 1.9.6 from Makefile.am.
- # @configure_input@
- # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-@@ -15,8 +15,6 @@
- @SET_MAKE@
--SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES)
--
- srcdir = @srcdir@
- top_srcdir = @top_srcdir@
- VPATH = @srcdir@
-@@ -141,6 +139,7 @@
- EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
- GMOFILES = @GMOFILES@
- GMSGFMT = @GMSGFMT@
-+GREP = @GREP@
- GT_NO = @GT_NO@
- GT_YES = @GT_YES@
- HDEFINES = @HDEFINES@
-@@ -190,10 +189,7 @@
- WIN32LDFLAGS = @WIN32LDFLAGS@
- WIN32LIBADD = @WIN32LIBADD@
- XGETTEXT = @XGETTEXT@
--ac_ct_AR = @ac_ct_AR@
- ac_ct_CC = @ac_ct_CC@
--ac_ct_RANLIB = @ac_ct_RANLIB@
--ac_ct_STRIP = @ac_ct_STRIP@
- all_backends = @all_backends@
- am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
- am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-@@ -219,6 +215,7 @@
- datadir = @datadir@
- datarootdir = @datarootdir@
- docdir = @docdir@
-+dvidir = @dvidir@
- exec_prefix = @exec_prefix@
- host = @host@
- host_alias = @host_alias@
-@@ -233,12 +230,15 @@
- l = @l@
- libdir = @libdir@
- libexecdir = @libexecdir@
-+localedir = @localedir@
- localstatedir = @localstatedir@
- mandir = @mandir@
- mkdir_p = @mkdir_p@
- oldincludedir = @oldincludedir@
-+pdfdir = @pdfdir@
- prefix = @prefix@
- program_transform_name = @program_transform_name@
-+psdir = @psdir@
- sbindir = @sbindir@
- sharedstatedir = @sharedstatedir@
- sysconfdir = @sysconfdir@
-@@ -253,7 +253,7 @@
- AUTOMAKE_OPTIONS = 1.9 cygnus
- # Uncomment the following line when doing a release.
--RELEASE=y
-+# RELEASE=y
- INCDIR = $(srcdir)/../include
- CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
- MKDEP = gcc -MM
-@@ -298,6 +298,7 @@
-       cpu-arc.lo \
-       cpu-arm.lo \
-       cpu-avr.lo \
-+      cpu-avr32.lo \
-       cpu-bfin.lo \
-       cpu-cr16c.lo \
-       cpu-cris.lo \
-@@ -471,6 +472,7 @@
-       elf32-arc.lo \
-       elf32-arm.lo \
-       elf32-avr.lo \
-+      elf32-avr32.lo \
-       elf32-bfin.lo \
-       elf32-cr16c.lo \
-       elf32-cris.lo \
-@@ -1831,6 +1833,10 @@
-   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
-   $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/bfin.h \
-   $(INCDIR)/elf/reloc-macros.h elf32-target.h
-+elf32-avr32.lo: elf32-avr32.c $(INCDIR)/filenames.h elf-bfd.h \
-+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
-+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/avr32.h $(INCDIR)/elf/reloc-macros.h \
-+  elf32-target.h
- elf32-cr16c.lo: elf32-cr16c.c $(INCDIR)/filenames.h \
-   $(INCDIR)/hashtab.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/cr16c.h \
-   $(INCDIR)/elf/reloc-macros.h elf-bfd.h $(INCDIR)/elf/common.h \
-Index: binutils-2.17/bfd/reloc.c
-===================================================================
---- binutils-2.17.orig/bfd/reloc.c     2007-06-28 09:19:34.211035584 +0200
-+++ binutils-2.17/bfd/reloc.c  2007-06-28 09:19:36.585674584 +0200
-@@ -3714,6 +3714,129 @@
-   instructions
- ENUM
-+  BFD_RELOC_AVR32_DIFF32
-+ENUMX
-+  BFD_RELOC_AVR32_DIFF16
-+ENUMX
-+  BFD_RELOC_AVR32_DIFF8
-+ENUMDOC
-+  Difference between two labels: L2 - L1. The value of L1 is encoded
-+  as sym + addend, while the initial difference after assembly is
-+  inserted into the object file by the assembler.
-+ENUM
-+  BFD_RELOC_AVR32_GOT32
-+ENUMX
-+  BFD_RELOC_AVR32_GOT16
-+ENUMX
-+  BFD_RELOC_AVR32_GOT8
-+ENUMDOC
-+  Reference to a symbol through the Global Offset Table. The linker
-+  will allocate an entry for symbol in the GOT and insert the offset
-+  of this entry as the relocation value.
-+ENUM
-+  BFD_RELOC_AVR32_21S
-+ENUMX
-+  BFD_RELOC_AVR32_16U
-+ENUMX
-+  BFD_RELOC_AVR32_16S
-+ENUMX
-+  BFD_RELOC_AVR32_SUB5
-+ENUMX
-+  BFD_RELOC_AVR32_8S_EXT
-+ENUMX
-+  BFD_RELOC_AVR32_8S
-+ENUMDOC
-+  Normal (non-pc-relative) code relocations. Alignment and signedness
-+  is indicated by the suffixes. S means signed, U means unsigned. W
-+  means word-aligned, H means halfword-aligned, neither means
-+  byte-aligned (no alignment.) SUB5 is the same relocation as 16S.
-+ENUM
-+  BFD_RELOC_AVR32_22H_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_18W_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_16B_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_16N_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_14UW_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_11H_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_10UW_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_9H_PCREL
-+ENUMX
-+  BFD_RELOC_AVR32_9UW_PCREL
-+ENUMDOC
-+  PC-relative relocations are signed if neither 'U' nor 'S' is
-+  specified. However, we explicitly tack on a 'B' to indicate no
-+  alignment, to avoid confusion with data relocs. All of these resolve
-+  to sym + addend - offset, except the one with 'N' (negated) suffix.
-+  This particular one resolves to offset - sym - addend.
-+ENUM
-+  BFD_RELOC_AVR32_GOTPC
-+ENUMDOC
-+  Subtract the link-time address of the GOT from (symbol + addend)
-+  and insert the result.
-+ENUM
-+  BFD_RELOC_AVR32_GOTCALL
-+ENUMX
-+  BFD_RELOC_AVR32_LDA_GOT
-+ENUMX
-+  BFD_RELOC_AVR32_GOT21S
-+ENUMX
-+  BFD_RELOC_AVR32_GOT18SW
-+ENUMX
-+  BFD_RELOC_AVR32_GOT16S
-+ENUMDOC
-+  Reference to a symbol through the GOT. The linker will allocate an
-+  entry for symbol in the GOT and insert the offset of this entry as
-+  the relocation value. addend must be zero. As usual, 'S' means
-+  signed, 'W' means word-aligned, etc.
-+ENUM
-+  BFD_RELOC_AVR32_32_CPENT
-+ENUMDOC
-+  32-bit constant pool entry. I don't think 8- and 16-bit entries make
-+  a whole lot of sense.
-+ENUM
-+  BFD_RELOC_AVR32_CPCALL
-+ENUMX
-+  BFD_RELOC_AVR32_16_CP
-+ENUMX
-+  BFD_RELOC_AVR32_9W_CP
-+ENUMDOC
-+  Constant pool references. Some of these relocations are signed,
-+  others are unsigned. It doesn't really matter, since the constant
-+  pool always comes after the code that references it.
-+ENUM
-+  BFD_RELOC_AVR32_ALIGN
-+ENUMDOC
-+  sym must be the absolute symbol. The addend specifies the alignment
-+  order, e.g. if addend is 2, the linker must add padding so that the
-+  next address is aligned to a 4-byte boundary.
-+ENUM
-+  BFD_RELOC_AVR32_14UW
-+ENUMX
-+  BFD_RELOC_AVR32_10UW
-+ENUMX
-+  BFD_RELOC_AVR32_10SW
-+ENUMX
-+  BFD_RELOC_AVR32_STHH_W
-+ENUMX
-+  BFD_RELOC_AVR32_7UW
-+ENUMX
-+  BFD_RELOC_AVR32_6S
-+ENUMX
-+  BFD_RELOC_AVR32_6UW
-+ENUMX
-+  BFD_RELOC_AVR32_4UH
-+ENUMX
-+  BFD_RELOC_AVR32_3U
-+ENUMDOC
-+  Code relocations that will never make it to the output file.
++   Written by Haavard Skinnemoen, Atmel Norway, <hskinnemoen@atmel.com>
 +
-+ENUM
-   BFD_RELOC_390_12
- ENUMDOC
-    Direct 12 bit.
-Index: binutils-2.17/bfd/targets.c
-===================================================================
---- binutils-2.17.orig/bfd/targets.c   2007-06-28 09:19:34.218034520 +0200
-+++ binutils-2.17/bfd/targets.c        2007-06-28 09:19:36.586674432 +0200
-@@ -553,6 +553,7 @@
- extern const bfd_target bfd_efi_app_ia32_vec;
- extern const bfd_target bfd_efi_app_ia64_vec;
- extern const bfd_target bfd_elf32_avr_vec;
-+extern const bfd_target bfd_elf32_avr32_vec;
- extern const bfd_target bfd_elf32_bfin_vec;
- extern const bfd_target bfd_elf32_bfinfdpic_vec;
- extern const bfd_target bfd_elf32_big_generic_vec;
-@@ -855,6 +856,7 @@
-       &bfd_efi_app_ia64_vec,
- #endif
-       &bfd_elf32_avr_vec,
-+      &bfd_elf32_avr32_vec,
-       &bfd_elf32_bfin_vec,
-       &bfd_elf32_bfinfdpic_vec,
-Index: binutils-2.17/binutils/config.in
-===================================================================
---- binutils-2.17.orig/binutils/config.in      2007-06-28 09:19:34.223033760 +0200
-+++ binutils-2.17/binutils/config.in   2007-06-28 09:19:36.587674280 +0200
-@@ -218,7 +218,7 @@
- /* If using the C implementation of alloca, define if you know the
-    direction of stack growth for your system; otherwise it will be
--   automatically deduced at run-time.
-+   automatically deduced at runtime.
-       STACK_DIRECTION > 0 => grows toward higher addresses
-       STACK_DIRECTION < 0 => grows toward lower addresses
-       STACK_DIRECTION = 0 => direction of growth unknown */
-@@ -260,8 +260,8 @@
- #undef inline
- #endif
--/* Define to `long' if <sys/types.h> does not define. */
-+/* Define to `long int' if <sys/types.h> does not define. */
- #undef off_t
--/* Define to `unsigned' if <sys/types.h> does not define. */
-+/* Define to `unsigned int' if <sys/types.h> does not define. */
- #undef size_t
-Index: binutils-2.17/binutils/configure
-===================================================================
---- binutils-2.17.orig/binutils/configure      2007-06-28 09:19:35.028911248 +0200
-+++ binutils-2.17/binutils/configure   2007-06-28 09:19:36.601672152 +0200
-@@ -1,25 +1,54 @@
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
--# Generated by GNU Autoconf 2.59.
-+# Generated by GNU Autoconf 2.61.
- #
--# Copyright (C) 2003 Free Software Foundation, Inc.
-+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-+# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- ## --------------------- ##
- ## M4sh Initialization.  ##
- ## --------------------- ##
--# Be Bourne compatible
-+# Be more Bourne compatible
-+DUALCASE=1; export DUALCASE # for MKS sh
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-   emulate sh
-   NULLCMD=:
-   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-   # is contrary to our usage.  Disable this feature.
-   alias -g '${1+"$@"}'='"$@"'
--elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
--  set -o posix
-+  setopt NO_GLOB_SUBST
-+else
-+  case `(set -o) 2>/dev/null` in
-+  *posix*) set -o posix ;;
-+esac
++   This file is part of BFD, the Binary File Descriptor library.
 +
-+fi
++   This program is free software; you can redistribute it and/or modify
++   it under the terms of the GNU General Public License as published by
++   the Free Software Foundation; either version 2 of the License, or
++   (at your option) any later version.
 +
++   This program is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++   GNU General Public License for more details.
 +
++   You should have received a copy of the GNU General Public License
++   along with this program; if not, write to the Free Software
++   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
 +
++#include "bfd.h"
++#include "sysdep.h"
++#include "bfdlink.h"
++#include "libbfd.h"
++#include "elf-bfd.h"
++#include "elf/avr32.h"
 +
-+# PATH needs CR
-+# Avoid depending upon Character Ranges.
-+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-+as_cr_digits='0123456789'
-+as_cr_alnum=$as_cr_Letters$as_cr_digits
++#define xDEBUG
++#define xRELAX_DEBUG
 +
-+# The user is always right.
-+if test "${PATH_SEPARATOR+set}" != set; then
-+  echo "#! /bin/sh" >conf$$.sh
-+  echo  "exit 0"   >>conf$$.sh
-+  chmod +x conf$$.sh
-+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
-+    PATH_SEPARATOR=';'
-+  else
-+    PATH_SEPARATOR=:
-+  fi
-+  rm -f conf$$.sh
- fi
--DUALCASE=1; export DUALCASE # for MKS sh
- # Support unset when possible.
- if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-@@ -29,8 +58,43 @@
- fi
-+# IFS
-+# We need space, tab and new line, in precisely that order.  Quoting is
-+# there to prevent editors from complaining about space-tab.
-+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-+# splitting by setting IFS to empty value.)
-+as_nl='
-+'
-+IFS=" ""      $as_nl"
++#ifdef DEBUG
++# define pr_debug(fmt, args...) fprintf(stderr, fmt, ##args)
++#else
++# define pr_debug(fmt, args...) do { } while (0)
++#endif
 +
-+# Find who we are.  Look in the path if we contain no directory separator.
-+case $0 in
-+  *[\\/]* ) as_myself=$0 ;;
-+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-+for as_dir in $PATH
-+do
-+  IFS=$as_save_IFS
-+  test -z "$as_dir" && as_dir=.
-+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-+done
-+IFS=$as_save_IFS
++#ifdef RELAX_DEBUG
++# define RDBG(fmt, args...) fprintf(stderr, fmt, ##args)
++#else
++# define RDBG(fmt, args...) do { } while (0)
++#endif
 +
-+     ;;
-+esac
-+# We did not find ourselves, most probably we were run as `sh COMMAND'
-+# in which case we are not to be found in the path.
-+if test "x$as_myself" = x; then
-+  as_myself=$0
-+fi
-+if test ! -f "$as_myself"; then
-+  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
-+  { (exit 1); exit 1; }
-+fi
++/* When things go wrong, we want it to blow up, damnit! */
++#undef BFD_ASSERT
++#undef abort
++#define BFD_ASSERT(expr)                                      \
++  do                                                          \
++    {                                                         \
++      if (!(expr))                                            \
++      {                                                       \
++        bfd_assert(__FILE__, __LINE__);                       \
++        abort();                                              \
++      }                                                       \
++    }                                                         \
++  while (0)
 +
- # Work around bugs in pre-3.0 UWIN ksh.
--$as_unset ENV MAIL MAILPATH
-+for as_var in ENV MAIL MAILPATH
-+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-+done
- PS1='$ '
- PS2='> '
- PS4='+ '
-@@ -44,18 +108,19 @@
-   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
-     eval $as_var=C; export $as_var
-   else
--    $as_unset $as_var
-+    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-   fi
- done
- # Required to use basename.
--if expr a : '\(a\)' >/dev/null 2>&1; then
-+if expr a : '\(a\)' >/dev/null 2>&1 &&
-+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-   as_expr=expr
- else
-   as_expr=false
- fi
--if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
-+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
-   as_basename=basename
- else
-   as_basename=false
-@@ -63,157 +128,388 @@
- # Name of the executable.
--as_me=`$as_basename "$0" ||
-+as_me=`$as_basename -- "$0" ||
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
-        X"$0" : 'X\(//\)$' \| \
--       X"$0" : 'X\(/\)$' \| \
--       .     : '\(.\)' 2>/dev/null ||
-+       X"$0" : 'X\(/\)' \| . 2>/dev/null ||
- echo X/"$0" |
--    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
--        /^X\/\(\/\/\)$/{ s//\1/; q; }
--        /^X\/\(\/\).*/{ s//\1/; q; }
--        s/.*/./; q'`
-+    sed '/^.*\/\([^/][^/]*\)\/*$/{
-+          s//\1/
-+          q
-+        }
-+        /^X\/\(\/\/\)$/{
-+          s//\1/
-+          q
-+        }
-+        /^X\/\(\/\).*/{
-+          s//\1/
-+          q
-+        }
-+        s/.*/./; q'`
-+# CDPATH.
-+$as_unset CDPATH
--# PATH needs CR, and LINENO needs CR and PATH.
--# Avoid depending upon Character Ranges.
--as_cr_letters='abcdefghijklmnopqrstuvwxyz'
--as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
--as_cr_Letters=$as_cr_letters$as_cr_LETTERS
--as_cr_digits='0123456789'
--as_cr_alnum=$as_cr_Letters$as_cr_digits
--# The user is always right.
--if test "${PATH_SEPARATOR+set}" != set; then
--  echo "#! /bin/sh" >conf$$.sh
--  echo  "exit 0"   >>conf$$.sh
--  chmod +x conf$$.sh
--  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
--    PATH_SEPARATOR=';'
--  else
--    PATH_SEPARATOR=:
--  fi
--  rm -f conf$$.sh
-+if test "x$CONFIG_SHELL" = x; then
-+  if (eval ":") 2>/dev/null; then
-+  as_have_required=yes
-+else
-+  as_have_required=no
-+fi
-+
-+  if test $as_have_required = yes &&   (eval ":
-+(as_func_return () {
-+  (exit \$1)
-+}
-+as_func_success () {
-+  as_func_return 0
-+}
-+as_func_failure () {
-+  as_func_return 1
-+}
-+as_func_ret_success () {
-+  return 0
-+}
-+as_func_ret_failure () {
-+  return 1
-+}
++/* The name of the dynamic interpreter. This is put in the .interp section. */
++#define ELF_DYNAMIC_INTERPRETER               "/lib/ld.so.1"
 +
-+exitcode=0
-+if as_func_success; then
-+  :
-+else
-+  exitcode=1
-+  echo as_func_success failed.
- fi
-+if as_func_failure; then
-+  exitcode=1
-+  echo as_func_failure succeeded.
-+fi
--  as_lineno_1=$LINENO
--  as_lineno_2=$LINENO
--  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
--  test "x$as_lineno_1" != "x$as_lineno_2" &&
--  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
--  # Find who we are.  Look in the path if we contain no path at all
--  # relative or not.
--  case $0 in
--    *[\\/]* ) as_myself=$0 ;;
--    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
--for as_dir in $PATH
--do
--  IFS=$as_save_IFS
--  test -z "$as_dir" && as_dir=.
--  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
--done
-+if as_func_ret_success; then
-+  :
-+else
-+  exitcode=1
-+  echo as_func_ret_success failed.
-+fi
--       ;;
--  esac
--  # We did not find ourselves, most probably we were run as `sh COMMAND'
--  # in which case we are not to be found in the path.
--  if test "x$as_myself" = x; then
--    as_myself=$0
--  fi
--  if test ! -f "$as_myself"; then
--    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
--   { (exit 1); exit 1; }; }
--  fi
--  case $CONFIG_SHELL in
--  '')
-+if as_func_ret_failure; then
-+  exitcode=1
-+  echo as_func_ret_failure succeeded.
-+fi
++#define AVR32_GOT_HEADER_SIZE         8
++#define AVR32_FUNCTION_STUB_SIZE      8
 +
-+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
-+  :
-+else
-+  exitcode=1
-+  echo positional parameters were not saved.
-+fi
++#define ELF_R_INFO(x, y) ELF32_R_INFO(x, y)
++#define ELF_R_TYPE(x) ELF32_R_TYPE(x)
++#define ELF_R_SYM(x) ELF32_R_SYM(x)
 +
-+test \$exitcode = 0) || { (exit 1); exit 1; }
++#define NOP_OPCODE 0xd703
 +
-+(
-+  as_lineno_1=\$LINENO
-+  as_lineno_2=\$LINENO
-+  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
-+  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
-+") 2> /dev/null; then
-+  :
-+else
-+  as_candidate_shells=
-     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
- do
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
--  for as_base in sh bash ksh sh5; do
--       case $as_dir in
-+  case $as_dir in
-        /*)
--         if ("$as_dir/$as_base" -c '
-+         for as_base in sh bash ksh sh5; do
-+           as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
-+         done;;
-+       esac
-+done
-+IFS=$as_save_IFS
++\f
++/* Mapping between BFD relocations and ELF relocations */
 +
++static reloc_howto_type *
++bfd_elf32_bfd_reloc_type_lookup(bfd *abfd, bfd_reloc_code_real_type code);
++static void
++avr32_info_to_howto (bfd *abfd, arelent *cache_ptr, Elf_Internal_Rela *dst);
 +
-+      for as_shell in $as_candidate_shells $SHELL; do
-+       # Try only shells that exist, to save several forks.
-+       if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
-+              { ("$as_shell") 2> /dev/null <<\_ASEOF
-+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-+  emulate sh
-+  NULLCMD=:
-+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-+  # is contrary to our usage.  Disable this feature.
-+  alias -g '${1+"$@"}'='"$@"'
-+  setopt NO_GLOB_SUBST
-+else
-+  case `(set -o) 2>/dev/null` in
-+  *posix*) set -o posix ;;
-+esac
++/* Generic HOWTO */
++#define GENH(name, align, size, bitsize, pcrel, bitpos, complain, mask)       \
++  HOWTO(name, align, size, bitsize, pcrel, bitpos,                    \
++      complain_overflow_##complain, bfd_elf_generic_reloc, #name,     \
++      FALSE, 0, mask, pcrel)
 +
-+fi
++static reloc_howto_type elf_avr32_howto_table[] = {
++  /*   NAME            ALN SZ BSZ PCREL  BP COMPLAIN  MASK        */
++  GENH(R_AVR32_NONE,    0, 0, 0,  FALSE, 0, dont,     0x00000000),
 +
++  GENH(R_AVR32_32,      0, 2, 32, FALSE, 0, dont,     0xffffffff),
++  GENH(R_AVR32_16,      0, 1, 16, FALSE, 0, bitfield, 0x0000ffff),
++  GENH(R_AVR32_8,       0, 0,  8, FALSE, 0, bitfield, 0x000000ff),
++  GENH(R_AVR32_32_PCREL,  0, 2, 32, TRUE,  0, signed,   0xffffffff),
++  GENH(R_AVR32_16_PCREL,  0, 1, 16, TRUE,  0, signed,   0x0000ffff),
++  GENH(R_AVR32_8_PCREL,         0, 0,  8, TRUE,  0, signed,   0x000000ff),
 +
-+:
-+_ASEOF
-+}; then
-+  CONFIG_SHELL=$as_shell
-+             as_have_required=yes
-+             if { "$as_shell" 2> /dev/null <<\_ASEOF
-+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-+  emulate sh
-+  NULLCMD=:
-+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-+  # is contrary to our usage.  Disable this feature.
-+  alias -g '${1+"$@"}'='"$@"'
-+  setopt NO_GLOB_SUBST
-+else
-+  case `(set -o) 2>/dev/null` in
-+  *posix*) set -o posix ;;
-+esac
++  /* Difference between two symbol (sym2 - sym1).  The reloc encodes
++     the value of sym1.  The field contains the difference before any
++     relaxing is done.  */
++  GENH(R_AVR32_DIFF32,          0, 2, 32, FALSE, 0, dont,     0xffffffff),
++  GENH(R_AVR32_DIFF16,          0, 1, 16, FALSE, 0, signed,   0x0000ffff),
++  GENH(R_AVR32_DIFF8,   0, 0,  8, FALSE, 0, signed,   0x000000ff),
 +
-+fi
++  GENH(R_AVR32_GOT32,   0, 2, 32, FALSE, 0, signed,   0xffffffff),
++  GENH(R_AVR32_GOT16,   0, 1, 16, FALSE, 0, signed,   0x0000ffff),
++  GENH(R_AVR32_GOT8,    0, 0,  8, FALSE, 0, signed,   0x000000ff),
 +
++  GENH(R_AVR32_21S,     0, 2, 21, FALSE, 0, signed,   0x1e10ffff),
++  GENH(R_AVR32_16U,     0, 2, 16, FALSE, 0, unsigned, 0x0000ffff),
++  GENH(R_AVR32_16S,     0, 2, 16, FALSE, 0, signed,   0x0000ffff),
++  GENH(R_AVR32_8S,      0, 1,  8, FALSE, 4, signed,   0x00000ff0),
++  GENH(R_AVR32_8S_EXT,          0, 2,  8, FALSE, 0, signed,   0x000000ff),
 +
-+:
-+(as_func_return () {
-+  (exit $1)
-+}
-+as_func_success () {
-+  as_func_return 0
-+}
-+as_func_failure () {
-+  as_func_return 1
-+}
-+as_func_ret_success () {
-+  return 0
-+}
-+as_func_ret_failure () {
-+  return 1
-+}
++  GENH(R_AVR32_22H_PCREL, 1, 2, 21, TRUE,  0, signed, 0x1e10ffff),
++  GENH(R_AVR32_18W_PCREL, 2, 2, 16, TRUE,  0, signed, 0x0000ffff),
++  GENH(R_AVR32_16B_PCREL, 0, 2, 16, TRUE,  0, signed, 0x0000ffff),
++  GENH(R_AVR32_16N_PCREL, 0, 2, 16, TRUE,  0, signed, 0x0000ffff),
++  GENH(R_AVR32_14UW_PCREL, 2, 2, 12, TRUE, 0, unsigned, 0x0000f0ff),
++  GENH(R_AVR32_11H_PCREL, 1, 1, 10, TRUE,  4, signed, 0x00000ff3),
++  GENH(R_AVR32_10UW_PCREL, 2, 2, 8, TRUE,  0, unsigned, 0x000000ff),
++  GENH(R_AVR32_9H_PCREL,  1, 1,  8, TRUE,  4, signed, 0x00000ff0),
++  GENH(R_AVR32_9UW_PCREL, 2, 1,  7, TRUE,  4, unsigned,       0x000007f0),
 +
-+exitcode=0
-+if as_func_success; then
-+  :
-+else
-+  exitcode=1
-+  echo as_func_success failed.
-+fi
++  GENH(R_AVR32_HI16,   16, 2, 16, FALSE, 0, dont,     0x0000ffff),
++  GENH(R_AVR32_LO16,    0, 2, 16, FALSE, 0, dont,     0x0000ffff),
 +
-+if as_func_failure; then
-+  exitcode=1
-+  echo as_func_failure succeeded.
-+fi
++  GENH(R_AVR32_GOTPC,   0, 2, 32, FALSE, 0, dont,     0xffffffff),
++  GENH(R_AVR32_GOTCALL,   2, 2, 21, FALSE, 0, signed, 0x1e10ffff),
++  GENH(R_AVR32_LDA_GOT,         2, 2, 21, FALSE, 0, signed,   0x1e10ffff),
++  GENH(R_AVR32_GOT21S,          0, 2, 21, FALSE, 0, signed,   0x1e10ffff),
++  GENH(R_AVR32_GOT18SW,         2, 2, 16, FALSE, 0, signed,   0x0000ffff),
++  GENH(R_AVR32_GOT16S,          0, 2, 16, FALSE, 0, signed,   0x0000ffff),
++  GENH(R_AVR32_GOT7UW,          2, 1,  5, FALSE, 4, unsigned, 0x000001f0),
 +
-+if as_func_ret_success; then
-+  :
-+else
-+  exitcode=1
-+  echo as_func_ret_success failed.
-+fi
++  GENH(R_AVR32_32_CPENT,  0, 2, 32, FALSE, 0, dont,   0xffffffff),
++  GENH(R_AVR32_CPCALL,          2, 2, 16, TRUE,  0, signed,   0x0000ffff),
++  GENH(R_AVR32_16_CP,   0, 2, 16, TRUE,  0, signed,   0x0000ffff),
++  GENH(R_AVR32_9W_CP,   2, 1,  7, TRUE,  4, unsigned, 0x000007f0),
 +
-+if as_func_ret_failure; then
-+  exitcode=1
-+  echo as_func_ret_failure succeeded.
-+fi
++  GENH(R_AVR32_RELATIVE,  0, 2, 32, FALSE, 0, signed, 0xffffffff),
++  GENH(R_AVR32_GLOB_DAT,  0, 2, 32, FALSE, 0, dont,   0xffffffff),
++  GENH(R_AVR32_JMP_SLOT,  0, 2, 32, FALSE, 0, dont,   0xffffffff),
 +
-+if ( set x; as_func_ret_success y && test x = "$1" ); then
-+  :
-+else
-+  exitcode=1
-+  echo positional parameters were not saved.
-+fi
++  GENH(R_AVR32_ALIGN,  0,  1, 0,  FALSE, 0, unsigned, 0x00000000),
++};
 +
-+test $exitcode = 0) || { (exit 1); exit 1; }
++struct elf_reloc_map
++{
++  bfd_reloc_code_real_type bfd_reloc_val;
++  unsigned char elf_reloc_val;
++};
 +
-+(
-   as_lineno_1=$LINENO
-   as_lineno_2=$LINENO
--  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
-   test "x$as_lineno_1" != "x$as_lineno_2" &&
--  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
--           $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
--           $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
--           CONFIG_SHELL=$as_dir/$as_base
--           export CONFIG_SHELL
--           exec "$CONFIG_SHELL" "$0" ${1+"$@"}
--         fi;;
--       esac
--       done
--done
--;;
--  esac
-+  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
++static const struct elf_reloc_map avr32_reloc_map[] =
++{
++  { BFD_RELOC_NONE,                   R_AVR32_NONE },
 +
-+_ASEOF
-+}; then
-+  break
-+fi
++  { BFD_RELOC_32,                     R_AVR32_32 },
++  { BFD_RELOC_16,                     R_AVR32_16 },
++  { BFD_RELOC_8,                      R_AVR32_8 },
++  { BFD_RELOC_32_PCREL,                       R_AVR32_32_PCREL },
++  { BFD_RELOC_16_PCREL,                       R_AVR32_16_PCREL },
++  { BFD_RELOC_8_PCREL,                        R_AVR32_8_PCREL },
++  { BFD_RELOC_AVR32_DIFF32,           R_AVR32_DIFF32 },
++  { BFD_RELOC_AVR32_DIFF16,           R_AVR32_DIFF16 },
++  { BFD_RELOC_AVR32_DIFF8,            R_AVR32_DIFF8 },
++  { BFD_RELOC_AVR32_GOT32,            R_AVR32_GOT32 },
++  { BFD_RELOC_AVR32_GOT16,            R_AVR32_GOT16 },
++  { BFD_RELOC_AVR32_GOT8,             R_AVR32_GOT8 },
 +
-+fi
++  { BFD_RELOC_AVR32_21S,              R_AVR32_21S },
++  { BFD_RELOC_AVR32_16U,              R_AVR32_16U },
++  { BFD_RELOC_AVR32_16S,              R_AVR32_16S },
++  { BFD_RELOC_AVR32_SUB5,             R_AVR32_16S },
++  { BFD_RELOC_AVR32_8S_EXT,           R_AVR32_8S_EXT },
++  { BFD_RELOC_AVR32_8S,                       R_AVR32_8S },
 +
-+      done
++  { BFD_RELOC_AVR32_22H_PCREL,                R_AVR32_22H_PCREL },
++  { BFD_RELOC_AVR32_18W_PCREL,                R_AVR32_18W_PCREL },
++  { BFD_RELOC_AVR32_16B_PCREL,                R_AVR32_16B_PCREL },
++  { BFD_RELOC_AVR32_16N_PCREL,                R_AVR32_16N_PCREL },
++  { BFD_RELOC_AVR32_11H_PCREL,                R_AVR32_11H_PCREL },
++  { BFD_RELOC_AVR32_10UW_PCREL,               R_AVR32_10UW_PCREL },
++  { BFD_RELOC_AVR32_9H_PCREL,         R_AVR32_9H_PCREL },
++  { BFD_RELOC_AVR32_9UW_PCREL,                R_AVR32_9UW_PCREL },
 +
-+      if test "x$CONFIG_SHELL" != x; then
-+  for as_var in BASH_ENV ENV
-+        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-+        done
-+        export CONFIG_SHELL
-+        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
-+fi
++  { BFD_RELOC_HI16,                   R_AVR32_HI16 },
++  { BFD_RELOC_LO16,                   R_AVR32_LO16 },
 +
++  { BFD_RELOC_AVR32_GOTPC,            R_AVR32_GOTPC },
++  { BFD_RELOC_AVR32_GOTCALL,          R_AVR32_GOTCALL },
++  { BFD_RELOC_AVR32_LDA_GOT,          R_AVR32_LDA_GOT },
++  { BFD_RELOC_AVR32_GOT21S,           R_AVR32_GOT21S },
++  { BFD_RELOC_AVR32_GOT18SW,          R_AVR32_GOT18SW },
++  { BFD_RELOC_AVR32_GOT16S,           R_AVR32_GOT16S },
++  /* GOT7UW should never be generated by the assembler */
 +
-+    if test $as_have_required = no; then
-+  echo This script requires a shell more modern than all the
-+      echo shells that I found on your system.  Please install a
-+      echo modern shell, or manually run the script under such a
-+      echo shell if you do have one.
-+      { (exit 1); exit 1; }
-+fi
++  { BFD_RELOC_AVR32_32_CPENT,         R_AVR32_32_CPENT },
++  { BFD_RELOC_AVR32_CPCALL,           R_AVR32_CPCALL },
++  { BFD_RELOC_AVR32_16_CP,            R_AVR32_16_CP },
++  { BFD_RELOC_AVR32_9W_CP,            R_AVR32_9W_CP },
 +
++  { BFD_RELOC_AVR32_ALIGN,            R_AVR32_ALIGN },
++};
 +
-+fi
++static reloc_howto_type *
++bfd_elf32_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
++                               bfd_reloc_code_real_type code)
++{
++  unsigned int i;
 +
-+fi
++  for (i = 0; i < sizeof(avr32_reloc_map) / sizeof(struct elf_reloc_map); i++)
++    {
++      if (avr32_reloc_map[i].bfd_reloc_val == code)
++      return &elf_avr32_howto_table[avr32_reloc_map[i].elf_reloc_val];
++    }
 +
++  return NULL;
++}
 +
++static void
++avr32_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
++                   arelent *cache_ptr,
++                   Elf_Internal_Rela *dst)
++{
++  unsigned int r_type;
 +
-+(eval "as_func_return () {
-+  (exit \$1)
-+}
-+as_func_success () {
-+  as_func_return 0
-+}
-+as_func_failure () {
-+  as_func_return 1
-+}
-+as_func_ret_success () {
-+  return 0
-+}
-+as_func_ret_failure () {
-+  return 1
++  r_type = ELF32_R_TYPE (dst->r_info);
++  BFD_ASSERT (r_type < (unsigned int) R_AVR32_max);
++  cache_ptr->howto = &elf_avr32_howto_table[r_type];
 +}
 +
-+exitcode=0
-+if as_func_success; then
-+  :
-+else
-+  exitcode=1
-+  echo as_func_success failed.
-+fi
++\f
++/* AVR32 ELF linker hash table and associated hash entries. */
 +
-+if as_func_failure; then
-+  exitcode=1
-+  echo as_func_failure succeeded.
-+fi
++static struct bfd_hash_entry *
++avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
++                          struct bfd_hash_table *table,
++                          const char *string);
++static void
++avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
++                             struct elf_link_hash_entry *dir,
++                             struct elf_link_hash_entry *ind);
++static struct bfd_link_hash_table *
++avr32_elf_link_hash_table_create(bfd *abfd);
 +
-+if as_func_ret_success; then
-+  :
-+else
-+  exitcode=1
-+  echo as_func_ret_success failed.
-+fi
++/*
++  Try to limit memory usage to something reasonable when sorting the
++  GOT.  If we ever get more than this many references to the same
++  symbol, we may need to do something special.
++*/
++#define MAX_NR_GOT_HOLES      8192
 +
-+if as_func_ret_failure; then
-+  exitcode=1
-+  echo as_func_ret_failure succeeded.
-+fi
++/*
++  AVR32 GOT entry.  We need to keep track of refcounts and offsets
++  simultaneously, since we need the offsets during relaxation, and we
++  also want to be able to drop GOT entries during relaxation. In
++  addition to this, we want to keep the list of GOT entries sorted so
++  that we can keep the most-used entries at the lowest offsets.
++*/
++struct got_entry
++{
++  struct got_entry *next;
++  struct got_entry **pprev;
++  int refcount;
++  bfd_signed_vma offset;
++};
 +
-+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
-+  :
-+else
-+  exitcode=1
-+  echo positional parameters were not saved.
-+fi
++struct elf_avr32_link_hash_entry
++{
++  struct elf_link_hash_entry root;
 +
-+test \$exitcode = 0") || {
-+  echo No shell found that supports shell functions.
-+  echo Please tell autoconf@gnu.org about your system,
-+  echo including any error possibly output before this
-+  echo message
-+}
++  /* Number of runtime relocations against this symbol.  */
++  unsigned int possibly_dynamic_relocs;
 +
++  /* If there are anything but R_AVR32_GOT18 relocations against this
++     symbol, it means that someone may be taking the address of the
++     function, and we should therefore not create a stub.  */
++  bfd_boolean no_fn_stub;
 +
++  /* If there is a R_AVR32_32 relocation in a read-only section
++     against this symbol, we could be in trouble. If we're linking a
++     shared library or this symbol is defined in one, it means we must
++     emit a run-time reloc for it and that's not allowed in read-only
++     sections.  */
++  asection *readonly_reloc_sec;
++  bfd_vma readonly_reloc_offset;
 +
-+  as_lineno_1=$LINENO
-+  as_lineno_2=$LINENO
-+  test "x$as_lineno_1" != "x$as_lineno_2" &&
-+  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
-   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
-   # uniformly replaced by the line number.  The first 'sed' inserts a
--  # line-number line before each line; the second 'sed' does the real
--  # work.  The second script uses 'N' to pair each line-number line
--  # with the numbered line, and appends trailing '-' during
--  # substitution so that $LINENO is not a special case at line end.
-+  # line-number line after each line using $LINENO; the second 'sed'
-+  # does the real work.  The second script uses 'N' to pair each
-+  # line-number line with the line containing $LINENO, and appends
-+  # trailing '-' during substitution so that $LINENO is not a special
-+  # case at line end.
-   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
--  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
--  sed '=' <$as_myself |
-+  # scripts with optimization help from Paolo Bonzini.  Blame Lee
-+  # E. McMahon (1931-1989) for sed's syntax.  :-)
-+  sed -n '
-+    p
-+    /[$]LINENO/=
-+  ' <$as_myself |
-     sed '
-+      s/[$]LINENO.*/&-/
-+      t lineno
-+      b
-+      :lineno
-       N
--      s,$,-,
--      : loop
--      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
-+      :loop
-+      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
-       t loop
--      s,-$,,
--      s,^['$as_cr_digits']*\n,,
-+      s/-\n.*//
-     ' >$as_me.lineno &&
--  chmod +x $as_me.lineno ||
-+  chmod +x "$as_me.lineno" ||
-     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
-    { (exit 1); exit 1; }; }
-   # Don't try to exec as it changes $[0], causing all sort of problems
-   # (the dirname of $[0] is not the place where we might find the
--  # original and so on.  Autoconf is especially sensible to this).
--  . ./$as_me.lineno
-+  # original and so on.  Autoconf is especially sensitive to this).
-+  . "./$as_me.lineno"
-   # Exit status is that of the last command.
-   exit
- }
--case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
--  *c*,-n*) ECHO_N= ECHO_C='
--' ECHO_T='    ' ;;
--  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
--  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
-+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
-+  as_dirname=dirname
-+else
-+  as_dirname=false
-+fi
++  /* Record which frag (if any) contains the symbol.  This is used
++     during relaxation in order to avoid having to update all symbols
++     whenever we move something.  For local symbols, this information
++     is in the local_sym_frag member of struct elf_obj_tdata.  */
++  struct fragment *sym_frag;
++};
++#define avr32_elf_hash_entry(ent) ((struct elf_avr32_link_hash_entry *)(ent))
 +
-+ECHO_C= ECHO_N= ECHO_T=
-+case `echo -n x` in
-+-n*)
-+  case `echo 'x\c'` in
-+  *c*) ECHO_T='       ';;     # ECHO_T is single tab character.
-+  *)   ECHO_C='\c';;
-+  esac;;
-+*)
-+  ECHO_N='-n';;
- esac
--if expr a : '\(a\)' >/dev/null 2>&1; then
-+if expr a : '\(a\)' >/dev/null 2>&1 &&
-+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-   as_expr=expr
- else
-   as_expr=false
- fi
- rm -f conf$$ conf$$.exe conf$$.file
-+if test -d conf$$.dir; then
-+  rm -f conf$$.dir/conf$$.file
-+else
-+  rm -f conf$$.dir
-+  mkdir conf$$.dir
-+fi
- echo >conf$$.file
- if ln -s conf$$.file conf$$ 2>/dev/null; then
--  # We could just check for DJGPP; but this test a) works b) is more generic
--  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
--  if test -f conf$$.exe; then
--    # Don't use ln at all; we don't have any links
-+  as_ln_s='ln -s'
-+  # ... but there are two gotchas:
-+  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
-+  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
-+  # In both cases, we have to default to `cp -p'.
-+  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
-     as_ln_s='cp -p'
--  else
--    as_ln_s='ln -s'
--  fi
- elif ln conf$$.file conf$$ 2>/dev/null; then
-   as_ln_s=ln
- else
-   as_ln_s='cp -p'
- fi
--rm -f conf$$ conf$$.exe conf$$.file
-+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-+rmdir conf$$.dir 2>/dev/null
- if mkdir -p . 2>/dev/null; then
-   as_mkdir_p=:
-@@ -222,7 +518,28 @@
-   as_mkdir_p=false
- fi
--as_executable_p="test -f"
-+if test -x / >/dev/null 2>&1; then
-+  as_test_x='test -x'
-+else
-+  if ls -dL / >/dev/null 2>&1; then
-+    as_ls_L_option=L
-+  else
-+    as_ls_L_option=
-+  fi
-+  as_test_x='
-+    eval sh -c '\''
-+      if test -d "$1"; then
-+        test -d "$1/.";
-+      else
-+      case $1 in
-+        -*)set "./$1";;
-+      esac;
-+      case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
-+      ???[sx]*):;;*)false;;esac;fi
-+    '\'' sh
-+  '
-+fi
-+as_executable_p=$as_test_x
- # Sed expression to map a string onto a valid CPP name.
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-@@ -231,39 +548,27 @@
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
--# IFS
--# We need space, tab and new line, in precisely that order.
--as_nl='
--'
--IFS="         $as_nl"
--
--# CDPATH.
--$as_unset CDPATH
-+exec 7<&0 </dev/null 6>&1
- # Name of the host.
- # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
- # so uname gets run too.
- ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
--exec 6>&1
--
- #
- # Initializations.
- #
- ac_default_prefix=/usr/local
-+ac_clean_files=
- ac_config_libobj_dir=.
-+LIBOBJS=
- cross_compiling=no
- subdirs=
- MFLAGS=
- MAKEFLAGS=
- SHELL=${CONFIG_SHELL-/bin/sh}
--# Maximum number of lines to put in a shell here document.
--# This variable seems obsolete.  It should probably be removed, and
--# only ac_max_sed_lines should be used.
--: ${ac_max_here_lines=38}
--
- # Identity of this package.
- PACKAGE_NAME=
- PACKAGE_TARNAME=
-@@ -275,42 +580,193 @@
- # Factoring default headers for most tests.
- ac_includes_default="\
- #include <stdio.h>
--#if HAVE_SYS_TYPES_H
-+#ifdef HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
--#if HAVE_SYS_STAT_H
-+#ifdef HAVE_SYS_STAT_H
- # include <sys/stat.h>
- #endif
--#if STDC_HEADERS
-+#ifdef STDC_HEADERS
- # include <stdlib.h>
- # include <stddef.h>
- #else
--# if HAVE_STDLIB_H
-+# ifdef HAVE_STDLIB_H
- #  include <stdlib.h>
- # endif
- #endif
--#if HAVE_STRING_H
--# if !STDC_HEADERS && HAVE_MEMORY_H
-+#ifdef HAVE_STRING_H
-+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
- #  include <memory.h>
- # endif
- # include <string.h>
- #endif
--#if HAVE_STRINGS_H
-+#ifdef HAVE_STRINGS_H
- # include <strings.h>
- #endif
--#if HAVE_INTTYPES_H
-+#ifdef HAVE_INTTYPES_H
- # include <inttypes.h>
--#else
--# if HAVE_STDINT_H
--#  include <stdint.h>
--# endif
- #endif
--#if HAVE_UNISTD_H
-+#ifdef HAVE_STDINT_H
-+# include <stdint.h>
-+#endif
-+#ifdef HAVE_UNISTD_H
- # include <unistd.h>
- #endif"
--ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
-+ac_subst_vars='SHELL
-+PATH_SEPARATOR
-+PACKAGE_NAME
-+PACKAGE_TARNAME
-+PACKAGE_VERSION
-+PACKAGE_STRING
-+PACKAGE_BUGREPORT
-+exec_prefix
-+prefix
-+program_transform_name
-+bindir
-+sbindir
-+libexecdir
-+datarootdir
-+datadir
-+sysconfdir
-+sharedstatedir
-+localstatedir
-+includedir
-+oldincludedir
-+docdir
-+infodir
-+htmldir
-+dvidir
-+pdfdir
-+psdir
-+libdir
-+localedir
-+mandir
-+DEFS
-+ECHO_C
-+ECHO_N
-+ECHO_T
-+LIBS
-+build_alias
-+host_alias
-+target_alias
-+build
-+build_cpu
-+build_vendor
-+build_os
-+host
-+host_cpu
-+host_vendor
-+host_os
-+target
-+target_cpu
-+target_vendor
-+target_os
-+CC
-+CFLAGS
-+LDFLAGS
-+CPPFLAGS
-+ac_ct_CC
-+EXEEXT
-+OBJEXT
-+INSTALL_PROGRAM
-+INSTALL_SCRIPT
-+INSTALL_DATA
-+CYGPATH_W
-+PACKAGE
-+VERSION
-+ACLOCAL
-+AUTOCONF
-+AUTOMAKE
-+AUTOHEADER
-+MAKEINFO
-+install_sh
-+STRIP
-+INSTALL_STRIP_PROGRAM
-+mkdir_p
-+AWK
-+SET_MAKE
-+am__leading_dot
-+AMTAR
-+am__tar
-+am__untar
-+DEPDIR
-+am__include
-+am__quote
-+AMDEP_TRUE
-+AMDEP_FALSE
-+AMDEPBACKSLASH
-+CCDEPMODE
-+am__fastdepCC_TRUE
-+am__fastdepCC_FALSE
-+LN_S
-+RANLIB
-+LIBTOOL
-+WARN_CFLAGS
-+NO_WERROR
-+YACC
-+YFLAGS
-+LEX
-+LEX_OUTPUT_ROOT
-+LEXLIB
-+CPP
-+GREP
-+EGREP
-+ALLOCA
-+USE_NLS
-+MSGFMT
-+GMSGFMT
-+XGETTEXT
-+USE_INCLUDED_LIBINTL
-+CATALOGS
-+CATOBJEXT
-+DATADIRNAME
-+GMOFILES
-+INSTOBJEXT
-+INTLDEPS
-+INTLLIBS
-+INTLOBJS
-+POFILES
-+POSUB
-+INCLUDE_LOCALE_H
-+GT_NO
-+GT_YES
-+MKINSTALLDIRS
-+l
-+MAINTAINER_MODE_TRUE
-+MAINTAINER_MODE_FALSE
-+MAINT
-+HDEFINES
-+AR
-+CC_FOR_BUILD
-+EXEEXT_FOR_BUILD
-+DEMANGLER_NAME
-+NLMCONV_DEFS
-+BUILD_NLMCONV
-+BUILD_SRCONV
-+BUILD_DLLTOOL
-+DLLTOOL_DEFS
-+BUILD_WINDRES
-+BUILD_DLLWRAP
-+BUILD_MISC
-+OBJDUMP_DEFS
-+EMULATION
-+EMULATION_VECTOR
-+LIBOBJS
-+LTLIBOBJS'
- ac_subst_files=''
-+      ac_precious_vars='build_alias
-+host_alias
-+target_alias
-+CC
-+CFLAGS
-+LDFLAGS
-+LIBS
-+CPPFLAGS
-+YACC
-+YFLAGS
-+CPP'
++struct elf_avr32_link_hash_table
++{
++  struct elf_link_hash_table root;
 +
- # Initialize some variables set by options.
- ac_init_help=
-@@ -337,34 +793,48 @@
- # and all the variables that are supposed to be based on exec_prefix
- # by default will actually change.
- # Use braces instead of parens because sh, perl, etc. also accept them.
-+# (The list follows the same order as the GNU Coding Standards.)
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
--datadir='${prefix}/share'
-+datarootdir='${prefix}/share'
-+datadir='${datarootdir}'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
--libdir='${exec_prefix}/lib'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
--infodir='${prefix}/info'
--mandir='${prefix}/man'
-+docdir='${datarootdir}/doc/${PACKAGE}'
-+infodir='${datarootdir}/info'
-+htmldir='${docdir}'
-+dvidir='${docdir}'
-+pdfdir='${docdir}'
-+psdir='${docdir}'
-+libdir='${exec_prefix}/lib'
-+localedir='${datarootdir}/locale'
-+mandir='${datarootdir}/man'
- ac_prev=
-+ac_dashdash=
- for ac_option
- do
-   # If the previous option needs an argument, assign it.
-   if test -n "$ac_prev"; then
--    eval "$ac_prev=\$ac_option"
-+    eval $ac_prev=\$ac_option
-     ac_prev=
-     continue
-   fi
--  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
-+  case $ac_option in
-+  *=*)        ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
-+  *)  ac_optarg=yes ;;
-+  esac
-   # Accept the important Cygnus configure options, so we can diagnose typos.
--  case $ac_option in
-+  case $ac_dashdash$ac_option in
-+  --)
-+    ac_dashdash=yes ;;
-   -bindir | --bindir | --bindi | --bind | --bin | --bi)
-     ac_prev=bindir ;;
-@@ -386,33 +856,45 @@
-   --config-cache | -C)
-     cache_file=config.cache ;;
--  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
-+  -datadir | --datadir | --datadi | --datad)
-     ac_prev=datadir ;;
--  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
--  | --da=*)
-+  -datadir=* | --datadir=* | --datadi=* | --datad=*)
-     datadir=$ac_optarg ;;
-+  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
-+  | --dataroo | --dataro | --datar)
-+    ac_prev=datarootdir ;;
-+  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
-+  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
-+    datarootdir=$ac_optarg ;;
++  /* Shortcuts to get to dynamic linker sections.  */
++  asection *sgot;
++  asection *srelgot;
++  asection *sstub;
 +
-   -disable-* | --disable-*)
-     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
-     # Reject names that are not valid shell variable names.
--    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
-+    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
-    { (exit 1); exit 1; }; }
--    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
--    eval "enable_$ac_feature=no" ;;
-+    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
-+    eval enable_$ac_feature=no ;;
++  /* We use a variation of Pigeonhole Sort to sort the GOT.  After the
++     initial refcounts have been determined, we initialize
++     nr_got_holes to the highest refcount ever seen and allocate an
++     array of nr_got_holes entries for got_hole.  Each GOT entry is
++     then stored in this array at the index given by its refcount.
 +
-+  -docdir | --docdir | --docdi | --doc | --do)
-+    ac_prev=docdir ;;
-+  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
-+    docdir=$ac_optarg ;;
++     When a GOT entry has its refcount decremented during relaxation,
++     it is moved to a lower index in the got_hole array.
++   */
++  struct got_entry **got_hole;
++  int nr_got_holes;
 +
-+  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
-+    ac_prev=dvidir ;;
-+  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
-+    dvidir=$ac_optarg ;;
-   -enable-* | --enable-*)
-     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
-     # Reject names that are not valid shell variable names.
--    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
-+    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
-    { (exit 1); exit 1; }; }
--    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
--    case $ac_option in
--      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
--      *) ac_optarg=yes ;;
--    esac
--    eval "enable_$ac_feature='$ac_optarg'" ;;
-+    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
-+    eval enable_$ac_feature=\$ac_optarg ;;
-   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
-   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
-@@ -439,6 +921,12 @@
-   -host=* | --host=* | --hos=* | --ho=*)
-     host_alias=$ac_optarg ;;
-+  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
-+    ac_prev=htmldir ;;
-+  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
-+  | --ht=*)
-+    htmldir=$ac_optarg ;;
++  /* Dynamic relocations to local symbols.  Only used when linking a
++     shared library and -Bsymbolic is not given.  */
++  unsigned int local_dynamic_relocs;
 +
-   -includedir | --includedir | --includedi | --included | --include \
-   | --includ | --inclu | --incl | --inc)
-     ac_prev=includedir ;;
-@@ -463,13 +951,16 @@
-   | --libexe=* | --libex=* | --libe=*)
-     libexecdir=$ac_optarg ;;
-+  -localedir | --localedir | --localedi | --localed | --locale)
-+    ac_prev=localedir ;;
-+  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
-+    localedir=$ac_optarg ;;
++  bfd_boolean relocations_analyzed;
++  bfd_boolean symbols_adjusted;
++  bfd_boolean repeat_pass;
++  unsigned int relax_iteration;
++  unsigned int relax_pass;
++};
++#define avr32_elf_hash_table(p)                               \
++  ((struct elf_avr32_link_hash_table *)((p)->hash))
 +
-   -localstatedir | --localstatedir | --localstatedi | --localstated \
--  | --localstate | --localstat | --localsta | --localst \
--  | --locals | --local | --loca | --loc | --lo)
-+  | --localstate | --localstat | --localsta | --localst | --locals)
-     ac_prev=localstatedir ;;
-   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
--  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
--  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
-+  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
-     localstatedir=$ac_optarg ;;
-   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
-@@ -534,6 +1025,16 @@
-   | --progr-tra=* | --program-tr=* | --program-t=*)
-     program_transform_name=$ac_optarg ;;
-+  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
-+    ac_prev=pdfdir ;;
-+  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
-+    pdfdir=$ac_optarg ;;
++static struct bfd_hash_entry *
++avr32_elf_link_hash_newfunc(struct bfd_hash_entry *entry,
++                          struct bfd_hash_table *table,
++                          const char *string)
++{
++  struct elf_avr32_link_hash_entry *ret = avr32_elf_hash_entry(entry);
 +
-+  -psdir | --psdir | --psdi | --psd | --ps)
-+    ac_prev=psdir ;;
-+  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
-+    psdir=$ac_optarg ;;
++  /* Allocate the structure if it hasn't already been allocated by a
++     subclass */
++  if (ret == NULL)
++    ret = (struct elf_avr32_link_hash_entry *)
++      bfd_hash_allocate(table, sizeof(struct elf_avr32_link_hash_entry));
 +
-   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-   | -silent | --silent | --silen | --sile | --sil)
-     silent=yes ;;
-@@ -586,24 +1087,20 @@
-   -with-* | --with-*)
-     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
-     # Reject names that are not valid shell variable names.
--    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
-+    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-       { echo "$as_me: error: invalid package name: $ac_package" >&2
-    { (exit 1); exit 1; }; }
--    ac_package=`echo $ac_package| sed 's/-/_/g'`
--    case $ac_option in
--      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
--      *) ac_optarg=yes ;;
--    esac
--    eval "with_$ac_package='$ac_optarg'" ;;
-+    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
-+    eval with_$ac_package=\$ac_optarg ;;
-   -without-* | --without-*)
-     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
-     # Reject names that are not valid shell variable names.
--    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
-+    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-       { echo "$as_me: error: invalid package name: $ac_package" >&2
-    { (exit 1); exit 1; }; }
--    ac_package=`echo $ac_package | sed 's/-/_/g'`
--    eval "with_$ac_package=no" ;;
-+    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
-+    eval with_$ac_package=no ;;
-   --x)
-     # Obsolete; use --with-x.
-@@ -634,8 +1131,7 @@
-     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
-       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
-    { (exit 1); exit 1; }; }
--    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
--    eval "$ac_envvar='$ac_optarg'"
-+    eval $ac_envvar=\$ac_optarg
-     export $ac_envvar ;;
-   *)
-@@ -655,27 +1151,19 @@
-    { (exit 1); exit 1; }; }
- fi
--# Be sure to have absolute paths.
--for ac_var in exec_prefix prefix
--do
--  eval ac_val=$`echo $ac_var`
--  case $ac_val in
--    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
--    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
--   { (exit 1); exit 1; }; };;
--  esac
--done
--
--# Be sure to have absolute paths.
--for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
--            localstatedir libdir includedir oldincludedir infodir mandir
-+# Be sure to have absolute directory names.
-+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
-+              datadir sysconfdir sharedstatedir localstatedir includedir \
-+              oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-+              libdir localedir mandir
- do
--  eval ac_val=$`echo $ac_var`
-+  eval ac_val=\$$ac_var
-   case $ac_val in
--    [\\/$]* | ?:[\\/]* ) ;;
--    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
--   { (exit 1); exit 1; }; };;
-+    [\\/$]* | ?:[\\/]* )  continue;;
-+    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
-   esac
-+  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
-+   { (exit 1); exit 1; }; }
- done
- # There might be people who depend on the old broken behavior: `$host'
-@@ -702,74 +1190,76 @@
- test "$silent" = yes && exec 6>/dev/null
-+ac_pwd=`pwd` && test -n "$ac_pwd" &&
-+ac_ls_di=`ls -di .` &&
-+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
-+  { echo "$as_me: error: Working directory cannot be determined" >&2
-+   { (exit 1); exit 1; }; }
-+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
-+  { echo "$as_me: error: pwd does not report name of working directory" >&2
-+   { (exit 1); exit 1; }; }
++  if (ret == NULL)
++    return NULL;
 +
++  memset(ret, 0, sizeof(struct elf_avr32_link_hash_entry));
 +
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
-   ac_srcdir_defaulted=yes
--  # Try the directory containing this script, then its parent.
--  ac_confdir=`(dirname "$0") 2>/dev/null ||
-+  # Try the directory containing this script, then the parent directory.
-+  ac_confdir=`$as_dirname -- "$0" ||
- $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$0" : 'X\(//\)[^/]' \| \
-        X"$0" : 'X\(//\)$' \| \
--       X"$0" : 'X\(/\)' \| \
--       .     : '\(.\)' 2>/dev/null ||
-+       X"$0" : 'X\(/\)' \| . 2>/dev/null ||
- echo X"$0" |
--    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
--        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
--        /^X\(\/\/\)$/{ s//\1/; q; }
--        /^X\(\/\).*/{ s//\1/; q; }
--        s/.*/./; q'`
-+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-+          s//\1/
-+          q
-+        }
-+        /^X\(\/\/\)[^/].*/{
-+          s//\1/
-+          q
-+        }
-+        /^X\(\/\/\)$/{
-+          s//\1/
-+          q
-+        }
-+        /^X\(\/\).*/{
-+          s//\1/
-+          q
-+        }
-+        s/.*/./; q'`
-   srcdir=$ac_confdir
--  if test ! -r $srcdir/$ac_unique_file; then
-+  if test ! -r "$srcdir/$ac_unique_file"; then
-     srcdir=..
-   fi
- else
-   ac_srcdir_defaulted=no
- fi
--if test ! -r $srcdir/$ac_unique_file; then
--  if test "$ac_srcdir_defaulted" = yes; then
--    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
--   { (exit 1); exit 1; }; }
--  else
--    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
--   { (exit 1); exit 1; }; }
--  fi
--fi
--(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
--  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
--   { (exit 1); exit 1; }; }
--srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
--ac_env_build_alias_set=${build_alias+set}
--ac_env_build_alias_value=$build_alias
--ac_cv_env_build_alias_set=${build_alias+set}
--ac_cv_env_build_alias_value=$build_alias
--ac_env_host_alias_set=${host_alias+set}
--ac_env_host_alias_value=$host_alias
--ac_cv_env_host_alias_set=${host_alias+set}
--ac_cv_env_host_alias_value=$host_alias
--ac_env_target_alias_set=${target_alias+set}
--ac_env_target_alias_value=$target_alias
--ac_cv_env_target_alias_set=${target_alias+set}
--ac_cv_env_target_alias_value=$target_alias
--ac_env_CC_set=${CC+set}
--ac_env_CC_value=$CC
--ac_cv_env_CC_set=${CC+set}
--ac_cv_env_CC_value=$CC
--ac_env_CFLAGS_set=${CFLAGS+set}
--ac_env_CFLAGS_value=$CFLAGS
--ac_cv_env_CFLAGS_set=${CFLAGS+set}
--ac_cv_env_CFLAGS_value=$CFLAGS
--ac_env_LDFLAGS_set=${LDFLAGS+set}
--ac_env_LDFLAGS_value=$LDFLAGS
--ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
--ac_cv_env_LDFLAGS_value=$LDFLAGS
--ac_env_CPPFLAGS_set=${CPPFLAGS+set}
--ac_env_CPPFLAGS_value=$CPPFLAGS
--ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
--ac_cv_env_CPPFLAGS_value=$CPPFLAGS
--ac_env_CPP_set=${CPP+set}
--ac_env_CPP_value=$CPP
--ac_cv_env_CPP_set=${CPP+set}
--ac_cv_env_CPP_value=$CPP
-+if test ! -r "$srcdir/$ac_unique_file"; then
-+  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
-+  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
-+   { (exit 1); exit 1; }; }
-+fi
-+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-+ac_abs_confdir=`(
-+      cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
-+   { (exit 1); exit 1; }; }
-+      pwd)`
-+# When building in place, set srcdir=.
-+if test "$ac_abs_confdir" = "$ac_pwd"; then
-+  srcdir=.
-+fi
-+# Remove unnecessary trailing slashes from srcdir.
-+# Double slashes in file names in object file debugging info
-+# mess up M-x gdb in Emacs.
-+case $srcdir in
-+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
-+esac
-+for ac_var in $ac_precious_vars; do
-+  eval ac_env_${ac_var}_set=\${${ac_var}+set}
-+  eval ac_env_${ac_var}_value=\$${ac_var}
-+  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
-+  eval ac_cv_env_${ac_var}_value=\$${ac_var}
-+done
- #
- # Report the --help message.
-@@ -798,9 +1288,6 @@
-   -n, --no-create         do not create output files
-       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
--_ACEOF
--
--  cat <<_ACEOF
- Installation directories:
-   --prefix=PREFIX         install architecture-independent files in PREFIX
-                         [$ac_default_prefix]
-@@ -818,15 +1305,22 @@
-   --bindir=DIR           user executables [EPREFIX/bin]
-   --sbindir=DIR          system admin executables [EPREFIX/sbin]
-   --libexecdir=DIR       program executables [EPREFIX/libexec]
--  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
-   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
-   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
-   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
-   --libdir=DIR           object code libraries [EPREFIX/lib]
-   --includedir=DIR       C header files [PREFIX/include]
-   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
--  --infodir=DIR          info documentation [PREFIX/info]
--  --mandir=DIR           man documentation [PREFIX/man]
-+  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
-+  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
-+  --infodir=DIR          info documentation [DATAROOTDIR/info]
-+  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
-+  --mandir=DIR           man documentation [DATAROOTDIR/man]
-+  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
-+  --htmldir=DIR          html documentation [DOCDIR]
-+  --dvidir=DIR           dvi documentation [DOCDIR]
-+  --pdfdir=DIR           pdf documentation [DOCDIR]
-+  --psdir=DIR            ps documentation [DOCDIR]
- _ACEOF
-   cat <<\_ACEOF
-@@ -876,126 +1370,100 @@
-   CFLAGS      C compiler flags
-   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
-               nonstandard directory <lib dir>
--  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
--              headers in a nonstandard directory <include dir>
-+  LIBS        libraries to pass to the linker, e.g. -l<library>
-+  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
-+              you have headers in a nonstandard directory <include dir>
-+  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
-+              the first program found out of: `bison -y', `byacc', `yacc'.
-+  YFLAGS      The list of arguments that will be passed by default to $YACC.
-+              This script will default YFLAGS to the empty string to avoid a
-+              default value of `-d' given by some make applications.
-   CPP         C preprocessor
- Use these variables to override the choices made by `configure' or to help
- it to find libraries and programs with nonstandard names/locations.
- _ACEOF
-+ac_status=$?
- fi
- if test "$ac_init_help" = "recursive"; then
-   # If there are subdirs, report their specific --help.
--  ac_popdir=`pwd`
-   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
--    test -d $ac_dir || continue
-+    test -d "$ac_dir" || continue
-     ac_builddir=.
--if test "$ac_dir" != .; then
-+case "$ac_dir" in
-+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-+*)
-   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
--  # A "../" for each directory in $ac_dir_suffix.
--  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
--else
--  ac_dir_suffix= ac_top_builddir=
--fi
-+  # A ".." for each directory in $ac_dir_suffix.
-+  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
-+  case $ac_top_builddir_sub in
-+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
-+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
-+  esac ;;
-+esac
-+ac_abs_top_builddir=$ac_pwd
-+ac_abs_builddir=$ac_pwd$ac_dir_suffix
-+# for backward compatibility:
-+ac_top_builddir=$ac_top_build_prefix
- case $srcdir in
--  .)  # No --srcdir option.  We are building in place.
-+  .)  # We are building in place.
-     ac_srcdir=.
--    if test -z "$ac_top_builddir"; then
--       ac_top_srcdir=.
--    else
--       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
--    fi ;;
--  [\\/]* | ?:[\\/]* )  # Absolute path.
-+    ac_top_srcdir=$ac_top_builddir_sub
-+    ac_abs_top_srcdir=$ac_pwd ;;
-+  [\\/]* | ?:[\\/]* )  # Absolute name.
-     ac_srcdir=$srcdir$ac_dir_suffix;
--    ac_top_srcdir=$srcdir ;;
--  *) # Relative path.
--    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
--    ac_top_srcdir=$ac_top_builddir$srcdir ;;
--esac
--
--# Do not use `cd foo && pwd` to compute absolute paths, because
--# the directories may not exist.
--case `pwd` in
--.) ac_abs_builddir="$ac_dir";;
--*)
--  case "$ac_dir" in
--  .) ac_abs_builddir=`pwd`;;
--  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
--  *) ac_abs_builddir=`pwd`/"$ac_dir";;
--  esac;;
--esac
--case $ac_abs_builddir in
--.) ac_abs_top_builddir=${ac_top_builddir}.;;
--*)
--  case ${ac_top_builddir}. in
--  .) ac_abs_top_builddir=$ac_abs_builddir;;
--  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
--  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
--  esac;;
--esac
--case $ac_abs_builddir in
--.) ac_abs_srcdir=$ac_srcdir;;
--*)
--  case $ac_srcdir in
--  .) ac_abs_srcdir=$ac_abs_builddir;;
--  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
--  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
--  esac;;
--esac
--case $ac_abs_builddir in
--.) ac_abs_top_srcdir=$ac_top_srcdir;;
--*)
--  case $ac_top_srcdir in
--  .) ac_abs_top_srcdir=$ac_abs_builddir;;
--  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
--  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
--  esac;;
--esac
--
--    cd $ac_dir
--    # Check for guested configure; otherwise get Cygnus style configure.
--    if test -f $ac_srcdir/configure.gnu; then
--      echo
--      $SHELL $ac_srcdir/configure.gnu  --help=recursive
--    elif test -f $ac_srcdir/configure; then
--      echo
--      $SHELL $ac_srcdir/configure  --help=recursive
--    elif test -f $ac_srcdir/configure.ac ||
--         test -f $ac_srcdir/configure.in; then
--      echo
--      $ac_configure --help
-+    ac_top_srcdir=$srcdir
-+    ac_abs_top_srcdir=$srcdir ;;
-+  *) # Relative name.
-+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
-+    ac_top_srcdir=$ac_top_build_prefix$srcdir
-+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-+esac
-+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
++  /* Give the superclass a chance */
++  ret = (struct elf_avr32_link_hash_entry *)
++    _bfd_elf_link_hash_newfunc((struct bfd_hash_entry *)ret, table, string);
 +
-+    cd "$ac_dir" || { ac_status=$?; continue; }
-+    # Check for guested configure.
-+    if test -f "$ac_srcdir/configure.gnu"; then
-+      echo &&
-+      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
-+    elif test -f "$ac_srcdir/configure"; then
-+      echo &&
-+      $SHELL "$ac_srcdir/configure" --help=recursive
-     else
-       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
--    fi
--    cd $ac_popdir
-+    fi || ac_status=$?
-+    cd "$ac_pwd" || { ac_status=$?; break; }
-   done
- fi
--test -n "$ac_init_help" && exit 0
-+test -n "$ac_init_help" && exit $ac_status
- if $ac_init_version; then
-   cat <<\_ACEOF
-+configure
-+generated by GNU Autoconf 2.61
--Copyright (C) 2003 Free Software Foundation, Inc.
-+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-+2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
- This configure script is free software; the Free Software Foundation
- gives unlimited permission to copy, distribute and modify it.
- _ACEOF
--  exit 0
-+  exit
- fi
--exec 5>config.log
--cat >&5 <<_ACEOF
-+cat >config.log <<_ACEOF
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- It was created by $as_me, which was
--generated by GNU Autoconf 2.59.  Invocation command line was
-+generated by GNU Autoconf 2.61.  Invocation command line was
-   $ $0 $@
- _ACEOF
-+exec 5>>config.log
- {
- cat <<_ASUNAME
- ## --------- ##
-@@ -1014,7 +1482,7 @@
- /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
- /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
- /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
--hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
-+/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
- /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
- /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
- /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
-@@ -1028,6 +1496,7 @@
-   test -z "$as_dir" && as_dir=.
-   echo "PATH: $as_dir"
- done
-+IFS=$as_save_IFS
- } >&5
-@@ -1049,7 +1518,6 @@
- ac_configure_args=
- ac_configure_args0=
- ac_configure_args1=
--ac_sep=
- ac_must_keep_next=false
- for ac_pass in 1 2
- do
-@@ -1060,7 +1528,7 @@
-     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-     | -silent | --silent | --silen | --sile | --sil)
-       continue ;;
--    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
-+    *\'*)
-       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
-     esac
-     case $ac_pass in
-@@ -1082,9 +1550,7 @@
-         -* ) ac_must_keep_next=true ;;
-       esac
-       fi
--      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
--      # Get rid of the leading space.
--      ac_sep=" "
-+      ac_configure_args="$ac_configure_args '$ac_arg'"
-       ;;
-     esac
-   done
-@@ -1095,8 +1561,8 @@
- # When interrupted or exit'd, cleanup temporary files, and complete
- # config.log.  We remove comments because anyway the quotes in there
- # would cause problems or look ugly.
--# WARNING: Be sure not to use single quotes in there, as some shells,
--# such as our DU 5.0 friend, will then `close' the trap.
-+# WARNING: Use '\'' to represent an apostrophe within the trap.
-+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
- trap 'exit_status=$?
-   # Save into config.log some information that might help in debugging.
-   {
-@@ -1109,20 +1575,34 @@
- _ASBOX
-     echo
-     # The following way of writing the cache mishandles newlines in values,
--{
-+(
-+  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
-+    eval ac_val=\$$ac_var
-+    case $ac_val in #(
-+    *${as_nl}*)
-+      case $ac_var in #(
-+      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
-+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
-+      esac
-+      case $ac_var in #(
-+      _ | IFS | as_nl) ;; #(
-+      *) $as_unset $ac_var ;;
-+      esac ;;
-+    esac
-+  done
-   (set) 2>&1 |
--    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
--    *ac_space=\ *)
-+    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
-+    *${as_nl}ac_space=\ *)
-       sed -n \
--      "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
--        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
--      ;;
-+      "s/'\''/'\''\\\\'\'''\''/g;
-+        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
-+      ;; #(
-     *)
--      sed -n \
--      "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
-+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
-       ;;
--    esac;
--}
-+    esac |
-+    sort
-+)
-     echo
-     cat <<\_ASBOX
-@@ -1133,22 +1613,28 @@
-     echo
-     for ac_var in $ac_subst_vars
-     do
--      eval ac_val=$`echo $ac_var`
--      echo "$ac_var='"'"'$ac_val'"'"'"
-+      eval ac_val=\$$ac_var
-+      case $ac_val in
-+      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
-+      esac
-+      echo "$ac_var='\''$ac_val'\''"
-     done | sort
-     echo
-     if test -n "$ac_subst_files"; then
-       cat <<\_ASBOX
--## ------------- ##
--## Output files. ##
--## ------------- ##
-+## ------------------- ##
-+## File substitutions. ##
-+## ------------------- ##
- _ASBOX
-       echo
-       for ac_var in $ac_subst_files
-       do
--      eval ac_val=$`echo $ac_var`
--      echo "$ac_var='"'"'$ac_val'"'"'"
-+      eval ac_val=\$$ac_var
-+      case $ac_val in
-+      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
-+      esac
-+      echo "$ac_var='\''$ac_val'\''"
-       done | sort
-       echo
-     fi
-@@ -1160,26 +1646,24 @@
- ## ----------- ##
- _ASBOX
-       echo
--      sed "/^$/d" confdefs.h | sort
-+      cat confdefs.h
-       echo
-     fi
-     test "$ac_signal" != 0 &&
-       echo "$as_me: caught signal $ac_signal"
-     echo "$as_me: exit $exit_status"
-   } >&5
--  rm -f core *.core &&
--  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
-+  rm -f core *.core core.conftest.* &&
-+    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
-     exit $exit_status
--     ' 0
-+' 0
- for ac_signal in 1 2 13 15; do
-   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
- done
- ac_signal=0
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
--rm -rf conftest* confdefs.h
--# AIX cpp loses on an empty file, so make sure it contains at least a newline.
--echo >confdefs.h
-+rm -f -r conftest* confdefs.h
- # Predefined preprocessor variables.
-@@ -1210,14 +1694,17 @@
- # Let the site file select an alternate cache file if it wants to.
- # Prefer explicitly selected file to automatically selected ones.
--if test -z "$CONFIG_SITE"; then
--  if test "x$prefix" != xNONE; then
--    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
--  else
--    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
--  fi
-+if test -n "$CONFIG_SITE"; then
-+  set x "$CONFIG_SITE"
-+elif test "x$prefix" != xNONE; then
-+  set x "$prefix/share/config.site" "$prefix/etc/config.site"
-+else
-+  set x "$ac_default_prefix/share/config.site" \
-+      "$ac_default_prefix/etc/config.site"
- fi
--for ac_site_file in $CONFIG_SITE; do
-+shift
-+for ac_site_file
-+do
-   if test -r "$ac_site_file"; then
-     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
- echo "$as_me: loading site script $ac_site_file" >&6;}
-@@ -1233,8 +1720,8 @@
-     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
- echo "$as_me: loading cache $cache_file" >&6;}
-     case $cache_file in
--      [\\/]* | ?:[\\/]* ) . $cache_file;;
--      *)                      . ./$cache_file;;
-+      [\\/]* | ?:[\\/]* ) . "$cache_file";;
-+      *)                      . "./$cache_file";;
-     esac
-   fi
- else
-@@ -1246,12 +1733,11 @@
- # Check that the precious variables saved in the cache have kept the same
- # value.
- ac_cache_corrupted=false
--for ac_var in `(set) 2>&1 |
--             sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
-+for ac_var in $ac_precious_vars; do
-   eval ac_old_set=\$ac_cv_env_${ac_var}_set
-   eval ac_new_set=\$ac_env_${ac_var}_set
--  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
--  eval ac_new_val="\$ac_env_${ac_var}_value"
-+  eval ac_old_val=\$ac_cv_env_${ac_var}_value
-+  eval ac_new_val=\$ac_env_${ac_var}_value
-   case $ac_old_set,$ac_new_set in
-     set,)
-       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-@@ -1276,8 +1762,7 @@
-   # Pass precious variables to config.status.
-   if test "$ac_new_set" = set; then
-     case $ac_new_val in
--    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
--      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
-+    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
-     *) ac_arg=$ac_var=$ac_new_val ;;
-     esac
-     case " $ac_configure_args " in
-@@ -1294,12 +1779,6 @@
-    { (exit 1); exit 1; }; }
- fi
--ac_ext=c
--ac_cpp='$CPP $CPPFLAGS'
--ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
--ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
--ac_compiler_gnu=$ac_cv_c_compiler_gnu
--
-@@ -1316,108 +1795,163 @@
-+ac_ext=c
-+ac_cpp='$CPP $CPPFLAGS'
-+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ac_aux_dir=
--for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
--  if test -f $ac_dir/install-sh; then
-+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
-+  if test -f "$ac_dir/install-sh"; then
-     ac_aux_dir=$ac_dir
-     ac_install_sh="$ac_aux_dir/install-sh -c"
-     break
--  elif test -f $ac_dir/install.sh; then
-+  elif test -f "$ac_dir/install.sh"; then
-     ac_aux_dir=$ac_dir
-     ac_install_sh="$ac_aux_dir/install.sh -c"
-     break
--  elif test -f $ac_dir/shtool; then
-+  elif test -f "$ac_dir/shtool"; then
-     ac_aux_dir=$ac_dir
-     ac_install_sh="$ac_aux_dir/shtool install -c"
-     break
-   fi
- done
- if test -z "$ac_aux_dir"; then
--  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
--echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
-+  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
-+echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
-    { (exit 1); exit 1; }; }
- fi
--ac_config_guess="$SHELL $ac_aux_dir/config.guess"
--ac_config_sub="$SHELL $ac_aux_dir/config.sub"
--ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
++  return (struct bfd_hash_entry *)ret;
++}
 +
-+# These three variables are undocumented and unsupported,
-+# and are intended to be withdrawn in a future Autoconf release.
-+# They can cause serious problems if a builder's source tree is in a directory
-+# whose full name contains unusual characters.
-+ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
-+ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
-+ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
++/* Copy data from an indirect symbol to its direct symbol, hiding the
++   old indirect symbol.  Process additional relocation information.
++   Also called for weakdefs, in which case we just let
++   _bfd_elf_link_hash_copy_indirect copy the flags for us.  */
 +
- # Make sure we can run config.sub.
--$ac_config_sub sun4 >/dev/null 2>&1 ||
--  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
--echo "$as_me: error: cannot run $ac_config_sub" >&2;}
-+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
-+  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
-+echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
-    { (exit 1); exit 1; }; }
--echo "$as_me:$LINENO: checking build system type" >&5
--echo $ECHO_N "checking build system type... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking build system type" >&5
-+echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
- if test "${ac_cv_build+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
--  ac_cv_build_alias=$build_alias
--test -z "$ac_cv_build_alias" &&
--  ac_cv_build_alias=`$ac_config_guess`
--test -z "$ac_cv_build_alias" &&
-+  ac_build_alias=$build_alias
-+test "x$ac_build_alias" = x &&
-+  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
-+test "x$ac_build_alias" = x &&
-   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
- echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
-    { (exit 1); exit 1; }; }
--ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
--  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
--echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
-+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
-+  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
-+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
-    { (exit 1); exit 1; }; }
- fi
--echo "$as_me:$LINENO: result: $ac_cv_build" >&5
--echo "${ECHO_T}$ac_cv_build" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
-+echo "${ECHO_T}$ac_cv_build" >&6; }
-+case $ac_cv_build in
-+*-*-*) ;;
-+*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
-+echo "$as_me: error: invalid value of canonical build" >&2;}
-+   { (exit 1); exit 1; }; };;
-+esac
- build=$ac_cv_build
--build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
--build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
--build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-+ac_save_IFS=$IFS; IFS='-'
-+set x $ac_cv_build
-+shift
-+build_cpu=$1
-+build_vendor=$2
-+shift; shift
-+# Remember, the first character of IFS is used to create $*,
-+# except with old shells:
-+build_os=$*
-+IFS=$ac_save_IFS
-+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
--echo "$as_me:$LINENO: checking host system type" >&5
--echo $ECHO_N "checking host system type... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking host system type" >&5
-+echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
- if test "${ac_cv_host+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
--  ac_cv_host_alias=$host_alias
--test -z "$ac_cv_host_alias" &&
--  ac_cv_host_alias=$ac_cv_build_alias
--ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
--  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
--echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
-+  if test "x$host_alias" = x; then
-+  ac_cv_host=$ac_cv_build
-+else
-+  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
-+    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
-+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
-    { (exit 1); exit 1; }; }
-+fi
- fi
--echo "$as_me:$LINENO: result: $ac_cv_host" >&5
--echo "${ECHO_T}$ac_cv_host" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
-+echo "${ECHO_T}$ac_cv_host" >&6; }
-+case $ac_cv_host in
-+*-*-*) ;;
-+*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
-+echo "$as_me: error: invalid value of canonical host" >&2;}
-+   { (exit 1); exit 1; }; };;
-+esac
- host=$ac_cv_host
--host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
--host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
--host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-+ac_save_IFS=$IFS; IFS='-'
-+set x $ac_cv_host
-+shift
-+host_cpu=$1
-+host_vendor=$2
-+shift; shift
-+# Remember, the first character of IFS is used to create $*,
-+# except with old shells:
-+host_os=$*
-+IFS=$ac_save_IFS
-+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
--echo "$as_me:$LINENO: checking target system type" >&5
--echo $ECHO_N "checking target system type... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking target system type" >&5
-+echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
- if test "${ac_cv_target+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
--  ac_cv_target_alias=$target_alias
--test "x$ac_cv_target_alias" = "x" &&
--  ac_cv_target_alias=$ac_cv_host_alias
--ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
--  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
--echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
-+  if test "x$target_alias" = x; then
-+  ac_cv_target=$ac_cv_host
-+else
-+  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
-+    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
-+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
-    { (exit 1); exit 1; }; }
-+fi
- fi
--echo "$as_me:$LINENO: result: $ac_cv_target" >&5
--echo "${ECHO_T}$ac_cv_target" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
-+echo "${ECHO_T}$ac_cv_target" >&6; }
-+case $ac_cv_target in
-+*-*-*) ;;
-+*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
-+echo "$as_me: error: invalid value of canonical target" >&2;}
-+   { (exit 1); exit 1; }; };;
-+esac
- target=$ac_cv_target
--target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
--target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
--target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-+ac_save_IFS=$IFS; IFS='-'
-+set x $ac_cv_target
-+shift
-+target_cpu=$1
-+target_vendor=$2
-+shift; shift
-+# Remember, the first character of IFS is used to create $*,
-+# except with old shells:
-+target_os=$*
-+IFS=$ac_save_IFS
-+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
- # The aliases save the names the user supplied, while $host etc.
-@@ -1434,8 +1968,8 @@
- if test -n "$ac_tool_prefix"; then
-   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}gcc; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_CC+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1448,32 +1982,34 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_CC="${ac_tool_prefix}gcc"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
--  echo "$as_me:$LINENO: result: $CC" >&5
--echo "${ECHO_T}$CC" >&6
-+  { echo "$as_me:$LINENO: result: $CC" >&5
-+echo "${ECHO_T}$CC" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
++static void
++avr32_elf_copy_indirect_symbol(struct bfd_link_info *info,
++                             struct elf_link_hash_entry *dir,
++                             struct elf_link_hash_entry *ind)
++{
++  struct elf_avr32_link_hash_entry *edir, *eind;
 +
- fi
- if test -z "$ac_cv_prog_CC"; then
-   ac_ct_CC=$CC
-   # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1486,36 +2022,51 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_ac_ct_CC="gcc"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
--  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
--echo "${ECHO_T}$ac_ct_CC" >&6
-+  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-+echo "${ECHO_T}$ac_ct_CC" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
--  CC=$ac_ct_CC
-+  if test "x$ac_ct_CC" = x; then
-+    CC=""
-+  else
-+    case $cross_compiling:$ac_tool_warned in
-+yes:)
-+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-+whose name does not start with the host triplet.  If you think this
-+configuration is useful to you, please write to autoconf@gnu.org." >&5
-+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-+whose name does not start with the host triplet.  If you think this
-+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-+ac_tool_warned=yes ;;
-+esac
-+    CC=$ac_ct_CC
-+  fi
- else
-   CC="$ac_cv_prog_CC"
- fi
- if test -z "$CC"; then
--  if test -n "$ac_tool_prefix"; then
--  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-+          if test -n "$ac_tool_prefix"; then
-+    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}cc; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_CC+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1528,74 +2079,34 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_CC="${ac_tool_prefix}cc"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
--  echo "$as_me:$LINENO: result: $CC" >&5
--echo "${ECHO_T}$CC" >&6
--else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
--fi
--
--fi
--if test -z "$ac_cv_prog_CC"; then
--  ac_ct_CC=$CC
--  # Extract the first word of "cc", so it can be a program name with args.
--set dummy cc; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
--if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  if test -n "$ac_ct_CC"; then
--  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
--else
--as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
--for as_dir in $PATH
--do
--  IFS=$as_save_IFS
--  test -z "$as_dir" && as_dir=.
--  for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
--    ac_cv_prog_ac_ct_CC="cc"
--    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
--    break 2
--  fi
--done
--done
--
--fi
--fi
--ac_ct_CC=$ac_cv_prog_ac_ct_CC
--if test -n "$ac_ct_CC"; then
--  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
--echo "${ECHO_T}$ac_ct_CC" >&6
-+  { echo "$as_me:$LINENO: result: $CC" >&5
-+echo "${ECHO_T}$CC" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
--  CC=$ac_ct_CC
--else
--  CC="$ac_cv_prog_CC"
--fi
-+  fi
- fi
- if test -z "$CC"; then
-   # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_CC+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1609,7 +2120,7 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
-        ac_prog_rejected=yes
-        continue
-@@ -1620,6 +2131,7 @@
-   fi
- done
- done
-+IFS=$as_save_IFS
- if test $ac_prog_rejected = yes; then
-   # We found a bogon in the path, so make sure we never use it.
-@@ -1637,22 +2149,23 @@
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
--  echo "$as_me:$LINENO: result: $CC" >&5
--echo "${ECHO_T}$CC" >&6
-+  { echo "$as_me:$LINENO: result: $CC" >&5
-+echo "${ECHO_T}$CC" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
++  _bfd_elf_link_hash_copy_indirect (info, dir, ind);
 +
- fi
- if test -z "$CC"; then
-   if test -n "$ac_tool_prefix"; then
--  for ac_prog in cl
-+  for ac_prog in cl.exe
-   do
-     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_CC+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1665,36 +2178,38 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
--  echo "$as_me:$LINENO: result: $CC" >&5
--echo "${ECHO_T}$CC" >&6
-+  { echo "$as_me:$LINENO: result: $CC" >&5
-+echo "${ECHO_T}$CC" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
++  if (ind->root.type != bfd_link_hash_indirect)
++    return;
 +
-     test -n "$CC" && break
-   done
- fi
- if test -z "$CC"; then
-   ac_ct_CC=$CC
--  for ac_prog in cl
-+  for ac_prog in cl.exe
- do
-   # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1707,29 +2222,45 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_ac_ct_CC="$ac_prog"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
--  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
--echo "${ECHO_T}$ac_ct_CC" >&6
-+  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-+echo "${ECHO_T}$ac_ct_CC" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
++  edir = (struct elf_avr32_link_hash_entry *)dir;
++  eind = (struct elf_avr32_link_hash_entry *)ind;
 +
-   test -n "$ac_ct_CC" && break
- done
--  CC=$ac_ct_CC
-+  if test "x$ac_ct_CC" = x; then
-+    CC=""
-+  else
-+    case $cross_compiling:$ac_tool_warned in
-+yes:)
-+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-+whose name does not start with the host triplet.  If you think this
-+configuration is useful to you, please write to autoconf@gnu.org." >&5
-+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-+whose name does not start with the host triplet.  If you think this
-+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-+ac_tool_warned=yes ;;
-+esac
-+    CC=$ac_ct_CC
-+  fi
- fi
- fi
-@@ -1742,21 +2273,35 @@
-    { (exit 1); exit 1; }; }
- # Provide some information about the compiler.
--echo "$as_me:$LINENO:" \
--     "checking for C compiler version" >&5
-+echo "$as_me:$LINENO: checking for C compiler version" >&5
- ac_compiler=`set X $ac_compile; echo $2`
--{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
--  (eval $ac_compiler --version </dev/null >&5) 2>&5
-+{ (ac_try="$ac_compiler --version >&5"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compiler --version >&5") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }
--{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
--  (eval $ac_compiler -v </dev/null >&5) 2>&5
-+{ (ac_try="$ac_compiler -v >&5"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compiler -v >&5") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }
--{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
--  (eval $ac_compiler -V </dev/null >&5) 2>&5
-+{ (ac_try="$ac_compiler -V >&5"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compiler -V >&5") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }
-@@ -1781,47 +2326,77 @@
- # Try to create an executable without -o first, disregard a.out.
- # It will help us diagnose broken compilers, and finding out an intuition
- # of exeext.
--echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
--echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
-+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
- ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
--if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
--  (eval $ac_link_default) 2>&5
-+#
-+# List of possible output files, starting from the most likely.
-+# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
-+# only as a last resort.  b.out is created by i960 compilers.
-+ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
-+#
-+# The IRIX 6 linker writes into existing files which may not be
-+# executable, retaining their permissions.  Remove them first so a
-+# subsequent execution test works.
-+ac_rmfiles=
-+for ac_file in $ac_files
-+do
-+  case $ac_file in
-+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
-+    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
-+  esac
-+done
-+rm -f $ac_rmfiles
++  edir->possibly_dynamic_relocs += eind->possibly_dynamic_relocs;
++  edir->no_fn_stub = edir->no_fn_stub || eind->no_fn_stub;
++}
 +
-+if { (ac_try="$ac_link_default"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_link_default") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; then
--  # Find the output, starting from the most likely.  This scheme is
--# not robust to junk in `.', hence go to wildcards (a.*) only as a last
--# resort.
--
--# Be careful to initialize this variable, since it used to be cached.
--# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
--ac_cv_exeext=
--# b.out is created by i960 compilers.
--for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
-+  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
-+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
-+# in a Makefile.  We should not override ac_cv_exeext if it was cached,
-+# so that the user can short-circuit this test for compilers unknown to
-+# Autoconf.
-+for ac_file in $ac_files ''
- do
-   test -f "$ac_file" || continue
-   case $ac_file in
--    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
--      ;;
--    conftest.$ac_ext )
--      # This is the source file.
-+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
-       ;;
-     [ab].out )
-       # We found the default executable, but exeext='' is most
-       # certainly right.
-       break;;
-     *.* )
--      ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
--      # FIXME: I believe we export ac_cv_exeext for Libtool,
--      # but it would be cool to find out if it's true.  Does anybody
--      # maintain Libtool? --akim.
--      export ac_cv_exeext
-+        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
-+      then :; else
-+         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
-+      fi
-+      # We set ac_cv_exeext here because the later test for it is not
-+      # safe: cross compilers may not add the suffix if given an `-o'
-+      # argument, so we may need to know it at that point already.
-+      # Even if this section looks crufty: it has the advantage of
-+      # actually working.
-       break;;
-     * )
-       break;;
-   esac
- done
-+test "$ac_cv_exeext" = no && ac_cv_exeext=
++static struct bfd_link_hash_table *
++avr32_elf_link_hash_table_create(bfd *abfd)
++{
++  struct elf_avr32_link_hash_table *ret;
 +
- else
-+  ac_file=''
-+fi
++  ret = bfd_zmalloc(sizeof(*ret));
++  if (ret == NULL)
++    return NULL;
 +
-+{ echo "$as_me:$LINENO: result: $ac_file" >&5
-+echo "${ECHO_T}$ac_file" >&6; }
-+if test -z "$ac_file"; then
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
-@@ -1833,19 +2408,21 @@
- fi
- ac_exeext=$ac_cv_exeext
--echo "$as_me:$LINENO: result: $ac_file" >&5
--echo "${ECHO_T}$ac_file" >&6
--# Check the compiler produces executables we can run.  If not, either
-+# Check that the compiler produces executables we can run.  If not, either
- # the compiler is broken, or we cross compile.
--echo "$as_me:$LINENO: checking whether the C compiler works" >&5
--echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
-+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
- # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
- # If not cross compiling, check that we can run a simple program.
- if test "$cross_compiling" != yes; then
-   if { ac_try='./$ac_file'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
-+  { (case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_try") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; }; then
-@@ -1864,22 +2441,27 @@
-     fi
-   fi
- fi
--echo "$as_me:$LINENO: result: yes" >&5
--echo "${ECHO_T}yes" >&6
-+{ echo "$as_me:$LINENO: result: yes" >&5
-+echo "${ECHO_T}yes" >&6; }
- rm -f a.out a.exe conftest$ac_cv_exeext b.out
- ac_clean_files=$ac_clean_files_save
--# Check the compiler produces executables we can run.  If not, either
-+# Check that the compiler produces executables we can run.  If not, either
- # the compiler is broken, or we cross compile.
--echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
--echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
--echo "$as_me:$LINENO: result: $cross_compiling" >&5
--echo "${ECHO_T}$cross_compiling" >&6
--
--echo "$as_me:$LINENO: checking for suffix of executables" >&5
--echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
--if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
--  (eval $ac_link) 2>&5
-+{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
-+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
-+{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
-+echo "${ECHO_T}$cross_compiling" >&6; }
++  if (! _bfd_elf_link_hash_table_init(&ret->root, abfd,
++                                    avr32_elf_link_hash_newfunc,
++                      sizeof (struct elf_avr32_link_hash_entry)))
++    {
++      free(ret);
++      return NULL;
++    }
 +
-+{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
-+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
-+if { (ac_try="$ac_link"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_link") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; then
-@@ -1890,9 +2472,8 @@
- for ac_file in conftest.exe conftest conftest.*; do
-   test -f "$ac_file" || continue
-   case $ac_file in
--    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
-+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
-     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
--        export ac_cv_exeext
-         break;;
-     * ) break;;
-   esac
-@@ -1906,14 +2487,14 @@
- fi
- rm -f conftest$ac_cv_exeext
--echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
--echo "${ECHO_T}$ac_cv_exeext" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
-+echo "${ECHO_T}$ac_cv_exeext" >&6; }
- rm -f conftest.$ac_ext
- EXEEXT=$ac_cv_exeext
- ac_exeext=$EXEEXT
--echo "$as_me:$LINENO: checking for suffix of object files" >&5
--echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
-+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
- if test "${ac_cv_objext+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1933,14 +2514,20 @@
- }
- _ACEOF
- rm -f conftest.o conftest.obj
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>&5
-+if { (ac_try="$ac_compile"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compile") 2>&5
-   ac_status=$?
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
-   (exit $ac_status); }; then
--  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
-+  for ac_file in conftest.o conftest.obj conftest.*; do
-+  test -f "$ac_file" || continue;
-   case $ac_file in
--    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
-+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
-     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
-        break;;
-   esac
-@@ -1958,12 +2545,12 @@
- rm -f conftest.$ac_cv_objext conftest.$ac_ext
- fi
--echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
--echo "${ECHO_T}$ac_cv_objext" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
-+echo "${ECHO_T}$ac_cv_objext" >&6; }
- OBJEXT=$ac_cv_objext
- ac_objext=$OBJEXT
--echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
--echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
-+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
- if test "${ac_cv_c_compiler_gnu+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -1986,50 +2573,49 @@
- }
- _ACEOF
- rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
-+if { (ac_try="$ac_compile"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compile") 2>conftest.er1
-   ac_status=$?
-   grep -v '^ *+' conftest.er1 >conftest.err
-   rm -f conftest.er1
-   cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
-+  (exit $ac_status); } && {
-+       test -z "$ac_c_werror_flag" ||
-+       test ! -s conftest.err
-+       } && test -s conftest.$ac_objext; then
-   ac_compiler_gnu=yes
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
--ac_compiler_gnu=no
-+      ac_compiler_gnu=no
- fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  /* Prevent the BFD core from creating bogus got_entry pointers */
++  ret->root.init_got_refcount.glist = NULL;
++  ret->root.init_plt_refcount.glist = NULL;
 +
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
- fi
--echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
--echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
-+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
- GCC=`test $ac_compiler_gnu = yes && echo yes`
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
--CFLAGS="-g"
--echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
--echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
-+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
- if test "${ac_cv_prog_cc_g+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
--  cat >conftest.$ac_ext <<_ACEOF
-+  ac_save_c_werror_flag=$ac_c_werror_flag
-+   ac_c_werror_flag=yes
-+   ac_cv_prog_cc_g=no
-+   CFLAGS="-g"
-+   cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
-@@ -2045,38 +2631,118 @@
- }
- _ACEOF
- rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
-+if { (ac_try="$ac_compile"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compile") 2>conftest.er1
-   ac_status=$?
-   grep -v '^ *+' conftest.er1 >conftest.err
-   rm -f conftest.er1
-   cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
-+  (exit $ac_status); } && {
-+       test -z "$ac_c_werror_flag" ||
-+       test ! -s conftest.err
-+       } && test -s conftest.$ac_objext; then
-+  ac_cv_prog_cc_g=yes
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
++  return &ret->root.root;
++}
 +
-+      CFLAGS=""
-+      cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
++\f
++/* Initial analysis and creation of dynamic sections and symbols */
 +
-+int
-+main ()
++static asection *
++create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
++                     unsigned int align_power);
++static struct elf_link_hash_entry *
++create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
++                    const char *name, asection *sec,
++                    bfd_vma offset);
++static bfd_boolean
++avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info);
++static bfd_boolean
++avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info);
++static bfd_boolean
++avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
++                  const Elf_Internal_Rela *relocs);
++static bfd_boolean
++avr32_elf_adjust_dynamic_symbol(struct bfd_link_info *info,
++                              struct elf_link_hash_entry *h);
++
++static asection *
++create_dynamic_section(bfd *dynobj, const char *name, flagword flags,
++                     unsigned int align_power)
 +{
++  asection *sec;
 +
-+  ;
-+  return 0;
++  sec = bfd_make_section(dynobj, name);
++  if (!sec
++      || !bfd_set_section_flags(dynobj, sec, flags)
++      || !bfd_set_section_alignment(dynobj, sec, align_power))
++    return NULL;
++
++  return sec;
 +}
-+_ACEOF
-+rm -f conftest.$ac_objext
-+if { (ac_try="$ac_compile"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compile") 2>conftest.er1
-   ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
-+  (exit $ac_status); } && {
-+       test -z "$ac_c_werror_flag" ||
-+       test ! -s conftest.err
-+       } && test -s conftest.$ac_objext; then
-+  :
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
 +
-+      ac_c_werror_flag=$ac_save_c_werror_flag
-+       CFLAGS="-g"
-+       cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
++static struct elf_link_hash_entry *
++create_dynamic_symbol(bfd *dynobj, struct bfd_link_info *info,
++                    const char *name, asection *sec,
++                    bfd_vma offset)
++{
++  struct bfd_link_hash_entry *bh = NULL;
++  struct elf_link_hash_entry *h;
++  const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
 +
-+int
-+main ()
++  if (!(_bfd_generic_link_add_one_symbol
++      (info, dynobj, name, BSF_GLOBAL, sec, offset, NULL, FALSE,
++       bed->collect, &bh)))
++    return NULL;
++
++  h = (struct elf_link_hash_entry *)bh;
++  h->def_regular = 1;
++  h->type = STT_OBJECT;
++  h->other = STV_HIDDEN;
++
++  return h;
++}
++
++static bfd_boolean
++avr32_elf_create_got_section (bfd *dynobj, struct bfd_link_info *info)
 +{
++  struct elf_avr32_link_hash_table *htab;
++  flagword flags;
++  const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
 +
-+  ;
-+  return 0;
++  htab = avr32_elf_hash_table(info);
++  flags = bed->dynamic_sec_flags;
++
++  if (htab->sgot)
++    return TRUE;
++
++  htab->sgot = create_dynamic_section(dynobj, ".got", flags, 2);
++  if (!htab->srelgot)
++    htab->srelgot = create_dynamic_section(dynobj, ".rela.got",
++                                         flags | SEC_READONLY, 2);
++
++  if (!htab->sgot || !htab->srelgot)
++    return FALSE;
++
++  htab->root.hgot = create_dynamic_symbol(dynobj, info, "_GLOBAL_OFFSET_TABLE_",
++                                        htab->sgot, 0);
++  if (!htab->root.hgot)
++    return FALSE;
++
++  /* Make room for the GOT header */
++  htab->sgot->size += bed->got_header_size;
++
++  return TRUE;
 +}
-+_ACEOF
-+rm -f conftest.$ac_objext
-+if { (ac_try="$ac_compile"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compile") 2>conftest.er1
-   ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
-+  (exit $ac_status); } && {
-+       test -z "$ac_c_werror_flag" ||
-+       test ! -s conftest.err
-+       } && test -s conftest.$ac_objext; then
-   ac_cv_prog_cc_g=yes
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
--ac_cv_prog_cc_g=no
 +
-+fi
++/* (1) Create all dynamic (i.e. linker generated) sections that we may
++   need during the link */
 +
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+fi
++static bfd_boolean
++avr32_elf_create_dynamic_sections (bfd *dynobj, struct bfd_link_info *info)
++{
++  struct elf_avr32_link_hash_table *htab;
++  flagword flags;
++  const struct elf_backend_data *bed = get_elf_backend_data (dynobj);
 +
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++  pr_debug("(1) create dynamic sections\n");
 +
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+   ac_c_werror_flag=$ac_save_c_werror_flag
- fi
--echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
--echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
-+{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
-+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
- if test "$ac_test_CFLAGS" = set; then
-   CFLAGS=$ac_save_CFLAGS
- elif test $ac_cv_prog_cc_g = yes; then
-@@ -2092,12 +2758,12 @@
-     CFLAGS=
-   fi
- fi
--echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
--echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
--if test "${ac_cv_prog_cc_stdc+set}" = set; then
-+{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
-+echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
-+if test "${ac_cv_prog_cc_c89+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
--  ac_cv_prog_cc_stdc=no
-+  ac_cv_prog_cc_c89=no
- ac_save_CC=$CC
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
-@@ -2131,12 +2797,17 @@
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
-    function prototypes and stuff, but not '\xHH' hex character constants.
-    These don't provoke an error unfortunately, instead are silently treated
--   as 'x'.  The following induces an error, until -std1 is added to get
-+   as 'x'.  The following induces an error, until -std is added to get
-    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
-    array size at least.  It's necessary to write '\x00'==0 to get something
--   that's true only with -std1.  */
-+   that's true only with -std.  */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
-+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
-+   inside strings and character constants.  */
-+#define FOO(x) 'x'
-+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
++  htab = avr32_elf_hash_table(info);
++  flags = bed->dynamic_sec_flags;
 +
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
-@@ -2151,335 +2822,144 @@
-   return 0;
- }
- _ACEOF
--# Don't try gcc -ansi; that turns off useful extensions and
--# breaks some systems' header files.
--# AIX                 -qlanglvl=ansi
--# Ultrix and OSF/1    -std1
--# HP-UX 10.20 and later       -Ae
--# HP-UX older versions        -Aa -D_HPUX_SOURCE
--# SVR4                        -Xc -D__EXTENSIONS__
--for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
-+      -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
-   CC="$ac_save_CC $ac_arg"
-   rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
-+if { (ac_try="$ac_compile"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_compile") 2>conftest.er1
-   ac_status=$?
-   grep -v '^ *+' conftest.er1 >conftest.err
-   rm -f conftest.er1
-   cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  ac_cv_prog_cc_stdc=$ac_arg
--break
-+  (exit $ac_status); } && {
-+       test -z "$ac_c_werror_flag" ||
-+       test ! -s conftest.err
-+       } && test -s conftest.$ac_objext; then
-+  ac_cv_prog_cc_c89=$ac_arg
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
++  if (!avr32_elf_create_got_section (dynobj, info))
++    return FALSE;
 +
- fi
--rm -f conftest.err conftest.$ac_objext
++  if (!htab->sstub)
++    htab->sstub = create_dynamic_section(dynobj, ".stub",
++                                       flags | SEC_READONLY | SEC_CODE, 2);
 +
-+rm -f core conftest.err conftest.$ac_objext
-+  test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
--rm -f conftest.$ac_ext conftest.$ac_objext
-+rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
--
--case "x$ac_cv_prog_cc_stdc" in
--  x|xno)
--    echo "$as_me:$LINENO: result: none needed" >&5
--echo "${ECHO_T}none needed" >&6 ;;
-+# AC_CACHE_VAL
-+case "x$ac_cv_prog_cc_c89" in
-+  x)
-+    { echo "$as_me:$LINENO: result: none needed" >&5
-+echo "${ECHO_T}none needed" >&6; } ;;
-+  xno)
-+    { echo "$as_me:$LINENO: result: unsupported" >&5
-+echo "${ECHO_T}unsupported" >&6; } ;;
-   *)
--    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
--echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
--    CC="$CC $ac_cv_prog_cc_stdc" ;;
-+    CC="$CC $ac_cv_prog_cc_c89"
-+    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
-+echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
- esac
--# Some people use a C++ compiler to compile C.  Since we use `exit',
--# in C++ we need to declare it.  In case someone uses the same compiler
--# for both compiling C and C++ we need to have the C++ compiler decide
--# the declaration of exit, since it's the most demanding environment.
++  if (!htab->sstub)
++    return FALSE;
 +
-+ac_ext=c
-+ac_cpp='$CPP $CPPFLAGS'
-+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_c_compiler_gnu
++  return TRUE;
++}
 +
++/* (2) Go through all the relocs and count any potential GOT- or
++   PLT-references to each symbol */
 +
-+{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
-+echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
-+if test "${ac_cv_search_strerror+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+  ac_func_search_save_LIBS=$LIBS
- cat >conftest.$ac_ext <<_ACEOF
--#ifndef __cplusplus
--  choke me
--#endif
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  for ac_declaration in \
--   '' \
--   'extern "C" void std::exit (int) throw (); using std::exit;' \
--   'extern "C" void std::exit (int); using std::exit;' \
--   'extern "C" void exit (int) throw ();' \
--   'extern "C" void exit (int);' \
--   'void exit (int);'
--do
--  cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h.  */
--$ac_declaration
--#include <stdlib.h>
++static bfd_boolean
++avr32_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
++                  const Elf_Internal_Rela *relocs)
++{
++  Elf_Internal_Shdr *symtab_hdr;
++  struct elf_avr32_link_hash_table *htab;
++  struct elf_link_hash_entry **sym_hashes;
++  const Elf_Internal_Rela *rel, *rel_end;
++  struct got_entry **local_got_ents;
++  struct got_entry *got;
++  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
++  asection *sgot;
++  bfd *dynobj;
 +
-+/* Override any GCC internal prototype to avoid an error.
-+   Use char because int might match the return type of a GCC
-+   builtin and then its argument prototype would still apply.  */
-+#ifdef __cplusplus
-+extern "C"
-+#endif
-+char strerror ();
- int
- main ()
- {
--exit (42);
-+return strerror ();
-   ;
-   return 0;
- }
- _ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
-+for ac_lib in '' cposix; do
-+  if test -z "$ac_lib"; then
-+    ac_res="none required"
-+  else
-+    ac_res=-l$ac_lib
-+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
-+  fi
-+  rm -f conftest.$ac_objext conftest$ac_exeext
-+if { (ac_try="$ac_link"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_link") 2>conftest.er1
-   ac_status=$?
-   grep -v '^ *+' conftest.er1 >conftest.err
-   rm -f conftest.er1
-   cat conftest.err >&5
-   echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  :
-+  (exit $ac_status); } && {
-+       test -z "$ac_c_werror_flag" ||
-+       test ! -s conftest.err
-+       } && test -s conftest$ac_exeext &&
-+       $as_test_x conftest$ac_exeext; then
-+  ac_cv_search_strerror=$ac_res
- else
-   echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
--continue
--fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--  cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--$ac_declaration
--int
--main ()
--{
--exit (42);
--  ;
--  return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext
--if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
--  (eval $ac_compile) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest.$ac_objext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  break
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
- fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--done
--rm -f conftest*
--if test -n "$ac_declaration"; then
--  echo '#ifdef __cplusplus' >>confdefs.h
--  echo $ac_declaration      >>confdefs.h
--  echo '#endif'             >>confdefs.h
--fi
--
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
-+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-+      conftest$ac_exeext
-+  if test "${ac_cv_search_strerror+set}" = set; then
-+  break
- fi
--rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
--ac_ext=c
--ac_cpp='$CPP $CPPFLAGS'
--ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
--ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
--ac_compiler_gnu=$ac_cv_c_compiler_gnu
--
--
--echo "$as_me:$LINENO: checking for library containing strerror" >&5
--echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
-+done
- if test "${ac_cv_search_strerror+set}" = set; then
--  echo $ECHO_N "(cached) $ECHO_C" >&6
--else
--  ac_func_search_save_LIBS=$LIBS
--ac_cv_search_strerror=no
--cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--
--/* Override any gcc2 internal prototype to avoid an error.  */
--#ifdef __cplusplus
--extern "C"
--#endif
--/* We use char because int might match the return type of a gcc2
--   builtin and then its argument prototype would still apply.  */
--char strerror ();
--int
--main ()
--{
--strerror ();
--  ;
--  return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext conftest$ac_exeext
--if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
--  (eval $ac_link) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest$ac_exeext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  ac_cv_search_strerror="none required"
--else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--fi
--rm -f conftest.err conftest.$ac_objext \
--      conftest$ac_exeext conftest.$ac_ext
--if test "$ac_cv_search_strerror" = no; then
--  for ac_lib in cposix; do
--    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
--    cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h.  */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h.  */
--
--/* Override any gcc2 internal prototype to avoid an error.  */
--#ifdef __cplusplus
--extern "C"
--#endif
--/* We use char because int might match the return type of a gcc2
--   builtin and then its argument prototype would still apply.  */
--char strerror ();
--int
--main ()
--{
--strerror ();
--  ;
--  return 0;
--}
--_ACEOF
--rm -f conftest.$ac_objext conftest$ac_exeext
--if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
--  (eval $ac_link) 2>conftest.er1
--  ac_status=$?
--  grep -v '^ *+' conftest.er1 >conftest.err
--  rm -f conftest.er1
--  cat conftest.err >&5
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); } &&
--       { ac_try='test -z "$ac_c_werror_flag"
--                       || test ! -s conftest.err'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; } &&
--       { ac_try='test -s conftest$ac_exeext'
--  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
--  (eval $ac_try) 2>&5
--  ac_status=$?
--  echo "$as_me:$LINENO: \$? = $ac_status" >&5
--  (exit $ac_status); }; }; then
--  ac_cv_search_strerror="-l$ac_lib"
--break
-+  :
- else
--  echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--fi
--rm -f conftest.err conftest.$ac_objext \
--      conftest$ac_exeext conftest.$ac_ext
--  done
-+  ac_cv_search_strerror=no
- fi
-+rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
--echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
--echo "${ECHO_T}$ac_cv_search_strerror" >&6
--if test "$ac_cv_search_strerror" != no; then
--  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
-+{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
-+echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
-+ac_res=$ac_cv_search_strerror
-+if test "$ac_res" != no; then
-+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- fi
-@@ -2499,8 +2979,8 @@
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # OS/2's system install, which has a completely different semantic
- # ./install, which can be erroneously created by make from ./install.sh.
--echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
--echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
-+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
- if test -z "$INSTALL"; then
- if test "${ac_cv_path_install+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
-@@ -2522,7 +3002,7 @@
-     # by default.
-     for ac_prog in ginstall scoinst install; do
-       for ac_exec_ext in '' $ac_executable_extensions; do
--      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
-+      if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
-         if test $ac_prog = install &&
-           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-           # AIX install.  It has an incompatible calling convention.
-@@ -2541,21 +3021,22 @@
-     ;;
- esac
- done
-+IFS=$as_save_IFS
- fi
-   if test "${ac_cv_path_install+set}" = set; then
-     INSTALL=$ac_cv_path_install
-   else
--    # As a last resort, use the slow shell script.  We don't cache a
--    # path for INSTALL within a source directory, because that will
-+    # As a last resort, use the slow shell script.  Don't cache a
-+    # value for INSTALL within a source directory, because that will
-     # break other packages using the cache if that directory is
--    # removed, or if the path is relative.
-+    # removed, or if the value is a relative name.
-     INSTALL=$ac_install_sh
-   fi
- fi
--echo "$as_me:$LINENO: result: $INSTALL" >&5
--echo "${ECHO_T}$INSTALL" >&6
-+{ echo "$as_me:$LINENO: result: $INSTALL" >&5
-+echo "${ECHO_T}$INSTALL" >&6; }
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
-@@ -2565,8 +3046,8 @@
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
--echo "$as_me:$LINENO: checking whether build environment is sane" >&5
--echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
-+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
- # Just in case
- sleep 1
- echo timestamp > conftest.file
-@@ -2608,20 +3089,20 @@
- Check your system clock" >&2;}
-    { (exit 1); exit 1; }; }
- fi
--echo "$as_me:$LINENO: result: yes" >&5
--echo "${ECHO_T}yes" >&6
-+{ echo "$as_me:$LINENO: result: yes" >&5
-+echo "${ECHO_T}yes" >&6; }
- test "$program_prefix" != NONE &&
--  program_transform_name="s,^,$program_prefix,;$program_transform_name"
-+  program_transform_name="s&^&$program_prefix&;$program_transform_name"
- # Use a double $ so make ignores it.
- test "$program_suffix" != NONE &&
--  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
-+  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
- # Double any \ or $.  echo might interpret backslashes.
- # By default was `s,x,x', remove it if useless.
- cat <<\_ACEOF >conftest.sed
- s/[\\$]/&&/g;s/;s,x,x,$//
- _ACEOF
- program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
--rm conftest.sed
-+rm -f conftest.sed
- # expand $ac_aux_dir to an absolute path
- am_aux_dir=`cd $ac_aux_dir && pwd`
-@@ -2673,8 +3154,8 @@
- do
-   # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_AWK+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -2687,54 +3168,57 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_AWK="$ac_prog"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- AWK=$ac_cv_prog_AWK
- if test -n "$AWK"; then
--  echo "$as_me:$LINENO: result: $AWK" >&5
--echo "${ECHO_T}$AWK" >&6
-+  { echo "$as_me:$LINENO: result: $AWK" >&5
-+echo "${ECHO_T}$AWK" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
++  pr_debug("(2) check relocs for %s:<%s> (size 0x%lx)\n",
++         abfd->filename, sec->name, sec->size);
 +
-   test -n "$AWK" && break
- done
--echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
--echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
--set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
--if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
-+{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
-+set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-   cat >conftest.make <<\_ACEOF
-+SHELL = /bin/sh
- all:
--      @echo 'ac_maketemp="$(MAKE)"'
-+      @echo '@@@%%%=$(MAKE)=@@@%%%'
- _ACEOF
- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
--eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
--if test -n "$ac_maketemp"; then
--  eval ac_cv_prog_make_${ac_make}_set=yes
--else
--  eval ac_cv_prog_make_${ac_make}_set=no
--fi
-+case `${MAKE-make} -f conftest.make 2>/dev/null` in
-+  *@@@%%%=?*=@@@%%%*)
-+    eval ac_cv_prog_make_${ac_make}_set=yes;;
-+  *)
-+    eval ac_cv_prog_make_${ac_make}_set=no;;
-+esac
- rm -f conftest.make
- fi
--if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
--  echo "$as_me:$LINENO: result: yes" >&5
--echo "${ECHO_T}yes" >&6
-+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
-+  { echo "$as_me:$LINENO: result: yes" >&5
-+echo "${ECHO_T}yes" >&6; }
-   SET_MAKE=
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
-   SET_MAKE="MAKE=${MAKE-make}"
- fi
-@@ -2749,7 +3233,7 @@
- DEPDIR="${am__leading_dot}deps"
--          ac_config_commands="$ac_config_commands depfiles"
-+ac_config_commands="$ac_config_commands depfiles"
- am_make=${MAKE-make}
-@@ -2759,8 +3243,8 @@
- .PHONY: am__doit
- END
- # If we don't find an include directive, just comment out the code.
--echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
--echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
-+echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
- am__include="#"
- am__quote=
- _am_result=none
-@@ -2787,15 +3271,15 @@
- fi
--echo "$as_me:$LINENO: result: $_am_result" >&5
--echo "${ECHO_T}$_am_result" >&6
-+{ echo "$as_me:$LINENO: result: $_am_result" >&5
-+echo "${ECHO_T}$_am_result" >&6; }
- rm -f confinc confmf
--# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
-+# Check whether --enable-dependency-tracking was given.
- if test "${enable_dependency_tracking+set}" = set; then
--  enableval="$enable_dependency_tracking"
-+  enableval=$enable_dependency_tracking;
-+fi
--fi;
- if test "x$enable_dependency_tracking" != xno; then
-   am_depcomp="$ac_aux_dir/depcomp"
-   AMDEPBACKSLASH='\'
-@@ -2870,8 +3354,8 @@
-   if test -n "$ac_tool_prefix"; then
-   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
- set dummy ${ac_tool_prefix}strip; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_STRIP+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -2884,32 +3368,34 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
- fi
- fi
- STRIP=$ac_cv_prog_STRIP
- if test -n "$STRIP"; then
--  echo "$as_me:$LINENO: result: $STRIP" >&5
--echo "${ECHO_T}$STRIP" >&6
-+  { echo "$as_me:$LINENO: result: $STRIP" >&5
-+echo "${ECHO_T}$STRIP" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
++  if (info->relocatable)
++    return TRUE;
 +
- fi
- if test -z "$ac_cv_prog_STRIP"; then
-   ac_ct_STRIP=$STRIP
-   # Extract the first word of "strip", so it can be a program name with args.
- set dummy strip; ac_word=$2
--echo "$as_me:$LINENO: checking for $ac_word" >&5
--echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
- if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -2922,27 +3408,41 @@
-   IFS=$as_save_IFS
-   test -z "$as_dir" && as_dir=.
-   for ac_exec_ext in '' $ac_executable_extensions; do
--  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-     ac_cv_prog_ac_ct_STRIP="strip"
-     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-     break 2
-   fi
- done
- done
-+IFS=$as_save_IFS
--  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
- fi
- fi
- ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
- if test -n "$ac_ct_STRIP"; then
--  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
--echo "${ECHO_T}$ac_ct_STRIP" >&6
-+  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
-+echo "${ECHO_T}$ac_ct_STRIP" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
--  STRIP=$ac_ct_STRIP
-+  if test "x$ac_ct_STRIP" = x; then
-+    STRIP=":"
-+  else
-+    case $cross_compiling:$ac_tool_warned in
-+yes:)
-+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-+whose name does not start with the host triplet.  If you think this
-+configuration is useful to you, please write to autoconf@gnu.org." >&5
-+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-+whose name does not start with the host triplet.  If you think this
-+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-+ac_tool_warned=yes ;;
-+esac
-+    STRIP=$ac_ct_STRIP
-+  fi
- else
-   STRIP="$ac_cv_prog_STRIP"
- fi
-@@ -2963,8 +3463,8 @@
- depcc="$CC"   am_compiler_list=
--echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
--echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
-+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
- if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -3053,8 +3553,8 @@
- fi
- fi
--echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
--echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
-+{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
-+echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
- CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-@@ -3072,10 +3572,9 @@
--# Check whether --enable-shared or --disable-shared was given.
-+# Check whether --enable-shared was given.
- if test "${enable_shared+set}" = set; then
--  enableval="$enable_shared"
--  p=${PACKAGE-default}
-+  enableval=$enable_shared; p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
-@@ -3093,11 +3592,11 @@
- esac
- else
-   enable_shared=yes
--fi;
--# Check whether --enable-static or --disable-static was given.
-+fi
++  dynobj = elf_hash_table(info)->dynobj;
++  symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
++  sym_hashes = elf_sym_hashes(abfd);
++  htab = avr32_elf_hash_table(info);
++  local_got_ents = elf_local_got_ents(abfd);
++  sgot = htab->sgot;
 +
-+# Check whether --enable-static was given.
- if test "${enable_static+set}" = set; then
--  enableval="$enable_static"
--  p=${PACKAGE-default}
-+  enableval=$enable_static; p=${PACKAGE-default}
- case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
-@@ -3115,11 +3614,11 @@
- esac
- else
-   enable_static=yes
--fi;
--# Check whether --enable-fast-install or --disable-fast-install was given.
-+fi
++  rel_end = relocs + sec->reloc_count;
++  for (rel = relocs; rel < rel_end; rel++)
++    {
++      unsigned long r_symndx, r_type;
++      struct elf_avr32_link_hash_entry *h;
 +
-+# Check whether --enable-fast-install was given.
- if test "${enable_fast_install+set}" = set; then
--  enableval="$enable_fast_install"
--  p=${PACKAGE-default}
-+  enableval=$enable_fast_install; p=${PACKAGE-default}
- case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
-@@ -3137,20 +3636,21 @@
- esac
- else
-   enable_fast_install=yes
--fi;
-+fi
++      r_symndx = ELF32_R_SYM(rel->r_info);
++      r_type = ELF32_R_TYPE(rel->r_info);
 +
--# Check whether --with-gnu-ld or --without-gnu-ld was given.
-+# Check whether --with-gnu-ld was given.
- if test "${with_gnu_ld+set}" = set; then
--  withval="$with_gnu_ld"
--  test "$withval" = no || with_gnu_ld=yes
-+  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
- else
-   with_gnu_ld=no
--fi;
-+fi
++      /* Local symbols use local_got_ents, while others store the same
++       information in the hash entry */
++      if (r_symndx < symtab_hdr->sh_info)
++      {
++        pr_debug("  (2a) processing local symbol %lu\n", r_symndx);
++        h = NULL;
++      }
++      else
++      {
++        h = (struct elf_avr32_link_hash_entry *)
++          sym_hashes[r_symndx - symtab_hdr->sh_info];
++        while (h->root.type == bfd_link_hash_indirect
++               || h->root.type == bfd_link_hash_warning)
++          h = (struct elf_avr32_link_hash_entry *)h->root.root.u.i.link;
++        pr_debug("  (2a) processing symbol %s\n", h->root.root.root.string);
++      }
 +
- ac_prog=ld
- if test "$GCC" = yes; then
-   # Check if gcc -print-prog-name=ld gives a path.
--  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
--echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
-+  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
-+echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
-   case $host in
-   *-*-mingw*)
-     # gcc leaves a trailing carriage return which upsets mingw
-@@ -3179,11 +3679,11 @@
-     ;;
-   esac
- elif test "$with_gnu_ld" = yes; then
--  echo "$as_me:$LINENO: checking for GNU ld" >&5
--echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
-+  { echo "$as_me:$LINENO: checking for GNU ld" >&5
-+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
- else
--  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
--echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
-+  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
-+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
- fi
- if test "${lt_cv_path_LD+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
-@@ -3212,17 +3712,17 @@
- LD="$lt_cv_path_LD"
- if test -n "$LD"; then
--  echo "$as_me:$LINENO: result: $LD" >&5
--echo "${ECHO_T}$LD" >&6
-+  { echo "$as_me:$LINENO: result: $LD" >&5
-+echo "${ECHO_T}$LD" >&6; }
- else
--  echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-+  { echo "$as_me:$LINENO: result: no" >&5
-+echo "${ECHO_T}no" >&6; }
- fi
- test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
- echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
-    { (exit 1); exit 1; }; }
--echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
--echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
-+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
- if test "${lt_cv_prog_gnu_ld+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -3233,25 +3733,25 @@
-   lt_cv_prog_gnu_ld=no
- fi
- fi
--echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
--echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
-+{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
-+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
- with_gnu_ld=$lt_cv_prog_gnu_ld
--echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
--echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
-+echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
- if test "${lt_cv_ld_reload_flag+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-   lt_cv_ld_reload_flag='-r'
- fi
--echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
--echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
-+{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
-+echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
- reload_flag=$lt_cv_ld_reload_flag
- test -n "$reload_flag" && reload_flag=" $reload_flag"
--echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
--echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
-+echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
- if test "${lt_cv_path_NM+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -3286,22 +3786,22 @@
- fi
- NM="$lt_cv_path_NM"
--echo "$as_me:$LINENO: result: $NM" >&5
--echo "${ECHO_T}$NM" >&6
-+{ echo "$as_me:$LINENO: result: $NM" >&5
-+echo "${ECHO_T}$NM" >&6; }
--echo "$as_me:$LINENO: checking whether ln -s works" >&5
--echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
-+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
- LN_S=$as_ln_s
- if test "$LN_S" = "ln -s"; then
--  echo "$as_me:$LINENO: result: yes" >&5
--echo "${ECHO_T}yes" >&6
-+  { echo "$as_me:$LINENO: result: yes" >&5
-+echo "${ECHO_T}yes" >&6; }
- else
--  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
--echo "${ECHO_T}no, using $LN_S" >&6
-+  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
-+echo "${ECHO_T}no, using $LN_S" >&6; }
- fi
--echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
--echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
-+{ echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
-+echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
- if test "${lt_cv_deplibs_check_method+set}" = set; then
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-@@ -3463,8 +3963,8 @@
- esac
- fi
--echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
--echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
-+{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
-+echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
- file_magic_cmd=$lt_cv_file_magic_cmd
- deplibs_check_method=$lt_cv_deplibs_check_method
-@@ -3474,8 +3974,8 @@
- # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
- # find the maximum length of command line arguments
--echo "$as_me:$LINENO: checking the maximum length of command line a