source: clfs-embedded/patches/binutils-2.17-uclibc-1.patch@ e3be44e8

Last change on this file since e3be44e8 was 841271e, checked in by Jim Gifford <clfs@…>, 18 years ago

uClibc updates

  • Property mode set to 100644
File size: 9.4 KB
  • bfd/configure

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2006-11-13
    Initial Package Version: 2.17
    Origin: uClibc and Buildroot
    Upstream Status: uClibc Specific
    Description: Makes Binutils uClibc Friendly
    
    diff -Naur binutils-2.17.orig/bfd/configure binutils-2.17/bfd/configure
    old new  
    35763576  ;;
    35773577
    35783578# This must be Linux ELF.
    3579 linux-gnu*)
     3579linux-gnu*|linux-uclibc*)
    35803580  lt_cv_deplibs_check_method=pass_all
    35813581  ;;
    35823582
  • bfd/elf32-mips.c

    diff -Naur binutils-2.17.orig/bfd/elf32-mips.c binutils-2.17/bfd/elf32-mips.c
    old new  
    16171617
    16181618/* The SVR4 MIPS ABI says that this should be 0x10000, and Linux uses
    16191619   page sizes of up to that limit, so we need to respect it.  */
    1620 #define ELF_MAXPAGESIZE                 0x10000
     1620/*#define ELF_MAXPAGESIZE                       0x10000*/
     1621/* Use 4K to shrink the elf header.  NOT for general use! */
     1622#define ELF_MAXPAGESIZE                 0x1000
    16211623#define elf32_bed                       elf32_tradbed
    16221624
    16231625/* Include the target file again for this target.  */
  • bfd/elfn32-mips.c

    diff -Naur binutils-2.17.orig/bfd/elfn32-mips.c binutils-2.17/bfd/elfn32-mips.c
    old new  
    24022402
    24032403/* The SVR4 MIPS ABI says that this should be 0x10000, and Linux uses
    24042404   page sizes of up to that limit, so we need to respect it.  */
    2405 #define ELF_MAXPAGESIZE                 0x10000
     2405/*#define ELF_MAXPAGESIZE                       0x10000*/
     2406/* Use 4K to shrink the elf header.  NOT for general use! */
     2407#define ELF_MAXPAGESIZE                 0x1000
    24062408#define elf32_bed                       elf32_tradbed
    24072409
    24082410/* Include the target file again for this target.  */
  • bfd/opncls.c

    diff -Naur binutils-2.17.orig/bfd/opncls.c binutils-2.17/bfd/opncls.c
    old new  
    158158{
    159159  bfd *nbfd;
    160160  const bfd_target *target_vec;
     161  struct stat s;
     162
     163  if (stat (filename, &s) == 0)
     164    if (S_ISDIR(s.st_mode)) {
     165      bfd_set_error (bfd_error_file_not_recognized);
     166      return NULL;
     167    }
    161168
    162169  nbfd = _bfd_new_bfd ();
    163170  if (nbfd == NULL)
  • binutils/configure

    diff -Naur binutils-2.17.orig/binutils/configure binutils-2.17/binutils/configure
    old new  
    34113411  ;;
    34123412
    34133413# This must be Linux ELF.
    3414 linux-gnu*)
     3414linux-gnu*|linux-uclibc*)
    34153415  lt_cv_deplibs_check_method=pass_all
    34163416  ;;
    34173417
  • binutils-2.17

    diff -Naur binutils-2.17.orig/configure binutils-2.17/configure
    old new  
    12761276  am33_2.0-*-linux*)
    12771277    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    12781278    ;;
    1279   sh-*-linux*)
     1279  sh*-*-linux*)
    12801280    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    12811281    ;;   
    12821282  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
     
    13051305  arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
    13061306    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    13071307    ;;
    1308   arm*-*-linux-gnueabi)
     1308  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    13091309    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    13101310    noconfigdirs="$noconfigdirs target-libjava target-libobjc"
    13111311    ;;
     
    15841584  romp-*-*)
    15851585    noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    15861586    ;;
    1587   sh-*-* | sh64-*-*)
     1587  sh*-*-* | sh64-*-*)
    15881588    case "${host}" in
    15891589      i[3456789]86-*-vsta) ;; # don't add gprof back in
    15901590      i[3456789]86-*-go32*) ;; # don't add gprof back in
  • configure.in

    diff -Naur binutils-2.17.orig/configure.in binutils-2.17/configure.in
    old new  
    468468  am33_2.0-*-linux*)
    469469    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    470470    ;;
    471   sh-*-linux*)
     471  sh*-*-linux*)
    472472    noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    473473    ;;   
    474474  sh*-*-pe|mips*-*-pe|*arm-wince-pe)
     
    497497  arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
    498498    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    499499    ;;
    500   arm*-*-linux-gnueabi)
     500  arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    501501    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
    502502    noconfigdirs="$noconfigdirs target-libjava target-libobjc"
    503503    ;;
     
    776776  romp-*-*)
    777777    noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    778778    ;;
    779   sh-*-* | sh64-*-*)
     779  sh*-*-* | sh64-*-*)
    780780    case "${host}" in
    781781      i[[3456789]]86-*-vsta) ;; # don't add gprof back in
    782782      i[[3456789]]86-*-go32*) ;; # don't add gprof back in
  • gas/configure

    diff -Naur binutils-2.17.orig/gas/configure binutils-2.17/gas/configure
    old new  
    34113411  ;;
    34123412
    34133413# This must be Linux ELF.
    3414 linux-gnu*)
     3414linux-gnu*|linux-uclibc*)
    34153415  lt_cv_deplibs_check_method=pass_all
    34163416  ;;
    34173417
  • gprof/configure

    diff -Naur binutils-2.17.orig/gprof/configure binutils-2.17/gprof/configure
    old new  
    34143414  lt_cv_deplibs_check_method=pass_all
    34153415  ;;
    34163416
     3417linux-uclibc*)
     3418  lt_cv_deplibs_check_method=pass_all
     3419  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
     3420  ;;
     3421
    34173422netbsd* | knetbsd*-gnu)
    34183423  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    34193424    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  • ld/Makefile.am

    diff -Naur binutils-2.17.orig/ld/Makefile.am binutils-2.17/ld/Makefile.am
    old new  
    2020# We put the scripts in the directory $(scriptdir)/ldscripts.
    2121# We can't put the scripts in $(datadir) because the SEARCH_DIR
    2222# directives need to be different for native and cross linkers.
    23 scriptdir = $(tooldir)/lib
     23scriptdir = $(libdir)
    2424
    2525EMUL = @EMUL@
    2626EMULATION_OFILES = @EMULATION_OFILES@
  • ld/Makefile.in

    diff -Naur binutils-2.17.orig/ld/Makefile.in binutils-2.17/ld/Makefile.in
    old new  
    269269# We put the scripts in the directory $(scriptdir)/ldscripts.
    270270# We can't put the scripts in $(datadir) because the SEARCH_DIR
    271271# directives need to be different for native and cross linkers.
    272 scriptdir = $(tooldir)/lib
     272scriptdir = $(libdir)
    273273BASEDIR = $(srcdir)/..
    274274BFDDIR = $(BASEDIR)/bfd
    275275INCDIR = $(BASEDIR)/include
  • ld/configure

    diff -Naur binutils-2.17.orig/ld/configure binutils-2.17/ld/configure
    old new  
    34133413  ;;
    34143414
    34153415# This must be Linux ELF.
    3416 linux-gnu*)
     3416linux-gnu*|linux-uclibc*)
    34173417  lt_cv_deplibs_check_method=pass_all
    34183418  ;;
    34193419
  • ld/emultempl/elf32.em

    diff -Naur binutils-2.17.orig/ld/emultempl/elf32.em binutils-2.17/ld/emultempl/elf32.em
    old new  
    970970              && command_line.rpath == NULL)
    971971            {
    972972              lib_path = (const char *) getenv ("LD_RUN_PATH");
     973              if ((lib_path) && (strlen (lib_path) == 0))
     974                  lib_path = NULL;
    973975              if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
    974976                                                      force))
    975977                break;
     
    11541156  rpath = command_line.rpath;
    11551157  if (rpath == NULL)
    11561158    rpath = (const char *) getenv ("LD_RUN_PATH");
     1159  if ((rpath) && (strlen (rpath) == 0))
     1160      rpath = NULL;
    11571161  if (! (bfd_elf_size_dynamic_sections
    11581162         (output_bfd, command_line.soname, rpath,
    11591163          command_line.filter_shlib,
  • binutils-2.17

    diff -Naur binutils-2.17.orig/libtool.m4 binutils-2.17/libtool.m4
    old new  
    739739  ;;
    740740
    741741# This must be Linux ELF.
    742 linux-gnu*)
     742linux-gnu*|linux-uclibc*)
    743743  lt_cv_deplibs_check_method=pass_all
    744744  ;;
    745745
  • binutils-2.17

    diff -Naur binutils-2.17.orig/ltconfig binutils-2.17/ltconfig
    old new  
    602602
    603603# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
    604604case $host_os in
     605linux-uclibc*) ;;
    605606linux-gnu*) ;;
    606607linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
    607608esac
     
    12471248  ;;
    12481249
    12491250# This must be Linux ELF.
    1250 linux-gnu*)
     1251linux-gnu*|linux-uclibc*)
    12511252  version_type=linux
    12521253  need_lib_prefix=no
    12531254  need_version=no
  • opcodes/configure

    diff -Naur binutils-2.17.orig/opcodes/configure binutils-2.17/opcodes/configure
    old new  
    35793579  ;;
    35803580
    35813581# This must be Linux ELF.
    3582 linux-gnu*)
     3582linux-gnu*|linux-uclibc*)
    35833583  lt_cv_deplibs_check_method=pass_all
    35843584  ;;
    35853585
Note: See TracBrowser for help on using the repository browser.