patches/glibc/2.1.3/glibc-2.1.3-allow-gcc3-errlist.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Backport from cvs 
     2 
     3 Fixes:
     4 
     5 ../sysdeps/unix/sysv/linux/errlist.c:41: weak declaration of `_old_sys_nerr' must precede definition
     6 make[2]: *** [/home/dank/downloads/crosstool-0.24/build/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/build-glibc/stdio-common/errlist.os] Error 1
     7 
     8 as well as breakage on arches where ; is a comment char in asm
     9 
    10 --- glibc-2.1.3/sysdeps/unix/sysv/linux/errlist.c.old	2004-03-05 15:32:21.000000000 -0800
    11 +++ glibc-2.1.3/sysdeps/unix/sysv/linux/errlist.c	2004-03-05 15:39:39.000000000 -0800
    12 @@ -24,13 +24,13 @@
    13  # define SYS_ERRLIST __new_sys_errlist
    14  # define SYS_NERR __new_sys_nerr
    15  
    16 -asm (".data; .globl __old_sys_errlist;  __old_sys_errlist:");
    17 +asm (".data\n\t.globl __old_sys_errlist\n\t __old_sys_errlist:");
    18  #endif
    19  
    20  #include <sysdeps/gnu/errlist.c>
    21  
    22  #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
    23 -asm (".type __old_sys_errlist,@object;.size __old_sys_errlist,"
    24 +asm (".type __old_sys_errlist,@object\n\t.size __old_sys_errlist,"
    25       OLD_ERRLIST_SIZE_STR "*" PTR_SIZE_STR);
    26  
    27  extern const char *const *__old_sys_errlist;
    28 @@ -38,17 +38,16 @@
    29  const int __old_sys_nerr = OLD_ERRLIST_SIZE;
    30  
    31  strong_alias (__old_sys_nerr, _old_sys_nerr);
    32 -weak_alias (__old_sys_nerr, _old_sys_nerr)
    33  symbol_version (__old_sys_nerr, _sys_nerr, GLIBC_2.0);
    34  symbol_version (_old_sys_nerr, sys_nerr, GLIBC_2.0);
    35 -weak_alias (__old_sys_errlist, _old_sys_errlist);
    36 +strong_alias (__old_sys_errlist, _old_sys_errlist);
    37  symbol_version (__old_sys_errlist, _sys_errlist, GLIBC_2.0);
    38  symbol_version (_old_sys_errlist, sys_errlist, GLIBC_2.0);
    39  
    40 -weak_alias (__new_sys_nerr, _new_sys_nerr)
    41 +strong_alias (__new_sys_nerr, _new_sys_nerr)
    42  default_symbol_version (__new_sys_nerr, _sys_nerr, GLIBC_2.1);
    43  default_symbol_version (_new_sys_nerr, sys_nerr, GLIBC_2.1);
    44 -weak_alias (__new_sys_errlist, _new_sys_errlist)
    45 +strong_alias (__new_sys_errlist, _new_sys_errlist)
    46  default_symbol_version (__new_sys_errlist, _sys_errlist, GLIBC_2.1);
    47  default_symbol_version (_new_sys_errlist, sys_errlist, GLIBC_2.1);
    48