patches/glibc/2.2.5/alpha-build-failure.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 28 21:34:41 2007 +0000 (2007-07-28)
changeset 301 2be7232a73ac
permissions -rw-r--r--
Bump version to 0.2.2.
     1 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156841
     2 
     3 Here's the error I got before I applied the patch:
     4 
     5 /home3/dank/crosstool-0.5/result/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/alpha-unknown-linux-gnu/3.2.3/../../../../alpha-unknown-linux-gnu/bin/ld: /home3/dank/crosstool-0.5/build/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libc_pic.os: pc-relative relocation against dynamic symbol __divlu
     6 /home3/dank/crosstool-0.5/result/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/alpha-unknown-linux-gnu/3.2.3/../../../../alpha-unknown-linux-gnu/bin/ld: /home3/dank/crosstool-0.5/build/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libc_pic.os: pc-relative relocation against dynamic symbol __divqu
     7 /home3/dank/crosstool-0.5/result/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/alpha-unknown-linux-gnu/3.2.3/../../../../alpha-unknown-linux-gnu/bin/ld: /home3/dank/crosstool-0.5/build/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libc_pic.os: pc-relative relocation against dynamic symbol __remlu
     8 /home3/dank/crosstool-0.5/result/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/alpha-unknown-linux-gnu/3.2.3/../../../../alpha-unknown-linux-gnu/bin/ld: /home3/dank/crosstool-0.5/build/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libc_pic.os: pc-relative relocation against dynamic symbol __remqu
     9 collect2: ld returned 1 exit status
    10 make[1]: *** [/home3/dank/crosstool-0.5/build/alpha-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libc.so] Error 1
    11 
    12 
    13 --- glibc-2.2.5/sysdeps/alpha/divrem.h	6 Jul 2001 04:55:45 -0000	1.8
    14 +++ glibc-2.2.5/sysdeps/alpha/divrem.h	15 Jun 2002 20:53:37 -0000	1.9
    15 @@ -1,4 +1,4 @@
    16 -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
    17 +/* Copyright (C) 1996,97,2002 Free Software Foundation, Inc.
    18     Contributed by David Mosberger (davidm@cs.arizona.edu).
    19     This file is part of the GNU C Library.
    20  
    21 @@ -86,6 +86,7 @@
    22  
    23  	.align 3
    24  UFUNC_NAME:
    25 +$udiv_entry:
    26  	lda	sp, -STACK(sp)
    27  	.frame	sp, STACK, retaddr, 0
    28  #ifdef PROF
    29 @@ -206,7 +207,7 @@
    30  	cmovge	AT, AT, arg2
    31  
    32  	/* Do the unsigned division.  */
    33 -	bsr	retaddr, UFUNC_NAME
    34 +	bsr	retaddr, $udiv_entry
    35  
    36  	/* Restore originals and adjust the sign of the result.  */
    37  	ldq	arg1, 0(sp)