1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.2.5/alpha-build-failure.patch Sat Jun 02 08:13:13 2007 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=156841
1.5 +
1.6 +Here's the error I got before I applied the patch:
1.7 +
1.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 __divlu
1.9 +/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
1.10 +/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
1.11 +/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
1.12 +collect2: ld returned 1 exit status
1.13 +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
1.14 +
1.15 +
1.16 +--- glibc-2.2.5/sysdeps/alpha/divrem.h 6 Jul 2001 04:55:45 -0000 1.8
1.17 ++++ glibc-2.2.5/sysdeps/alpha/divrem.h 15 Jun 2002 20:53:37 -0000 1.9
1.18 +@@ -1,4 +1,4 @@
1.19 +-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
1.20 ++/* Copyright (C) 1996,97,2002 Free Software Foundation, Inc.
1.21 + Contributed by David Mosberger (davidm@cs.arizona.edu).
1.22 + This file is part of the GNU C Library.
1.23 +
1.24 +@@ -86,6 +86,7 @@
1.25 +
1.26 + .align 3
1.27 + UFUNC_NAME:
1.28 ++$udiv_entry:
1.29 + lda sp, -STACK(sp)
1.30 + .frame sp, STACK, retaddr, 0
1.31 + #ifdef PROF
1.32 +@@ -206,7 +207,7 @@
1.33 + cmovge AT, AT, arg2
1.34 +
1.35 + /* Do the unsigned division. */
1.36 +- bsr retaddr, UFUNC_NAME
1.37 ++ bsr retaddr, $udiv_entry
1.38 +
1.39 + /* Restore originals and adjust the sign of the result. */
1.40 + ldq arg1, 0(sp)