Blame SOURCES/glibc-ia64-lib64.patch

b9ba6d
2004-05-14  Jakub Jelinek  <jakub@redhat.com>
b9ba6d
b9ba6d
	* sysdeps/unix/sysv/linux/configure.in: Use */lib64 even for ia64.
b9ba6d
	* sysdeps/unix/sysv/linux/configure: Rebuilt.
b9ba6d
	* sysdeps/unix/sysv/linux/ia64/dl-procinfo.c: New file.
b9ba6d
	* sysdeps/unix/sysv/linux/ia64/dl-procinfo.h: New file.
b9ba6d
	* sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Change /lib64/ld*
b9ba6d
	into /lib/ld*.  Add LD_LIBRARY_VERSION.
b9ba6d
	* sysdeps/unix/sysv/linux/ia64/ldconfig.h
b9ba6d
	(SYSDEP_KNOWN_INTERPRETER_NAMES): Add /lib64/ld-linux-ia64.so.2.
b9ba6d
	* sysdeps/unix/sysv/linux/ia64/dl-cache.h: Include sparc-linux
b9ba6d
	dl-cache.h instead of generic dl-cache.h.
b9ba6d
b9ba6d
--- libc/sysdeps/unix/sysv/linux/configure.jj	2003-03-23 03:10:04.000000000 +0100
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/configure	2004-05-14 15:54:35.669802684 +0200
b9ba6d
@@ -225,7 +225,7 @@ case "$prefix" in
b9ba6d
   # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib
b9ba6d
   case $machine in
b9ba6d
   sparc/sparc64 | x86_64 | powerpc/powerpc64 | s390/s390-64 | \
b9ba6d
-  mips/mips64/n64/* )
b9ba6d
+  mips/mips64/n64/* | ia64 )
b9ba6d
     libc_cv_slibdir="/lib64"
b9ba6d
     if test "$libdir" = '${exec_prefix}/lib'; then
b9ba6d
       libdir='${exec_prefix}/lib64';
b9ba6d
--- libc/sysdeps/unix/sysv/linux/configure.in.jj	2003-03-23 03:10:04.000000000 +0100
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/configure.in	2004-05-14 15:53:44.355998785 +0200
b9ba6d
@@ -158,7 +158,7 @@ case "$prefix" in
b9ba6d
   # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib
b9ba6d
   case $machine in
b9ba6d
   sparc/sparc64 | x86_64 | powerpc/powerpc64 | s390/s390-64 | \
b9ba6d
-  mips/mips64/n64/* )
b9ba6d
+  mips/mips64/n64/* | ia64 )
b9ba6d
     libc_cv_slibdir="/lib64"
b9ba6d
     if test "$libdir" = '${exec_prefix}/lib'; then
b9ba6d
       libdir='${exec_prefix}/lib64';
b9ba6d
--- libc/sysdeps/unix/sysv/linux/ia64/dl-procinfo.c.jj	2004-05-14 15:42:09.307560515 +0200
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/ia64/dl-procinfo.c	2003-09-30 00:23:24.000000000 +0200
b9ba6d
@@ -0,0 +1,5 @@
b9ba6d
+#ifdef IS_IN_ldconfig
b9ba6d
+#include <sysdeps/i386/dl-procinfo.c>
b9ba6d
+#else
b9ba6d
+#include <sysdeps/generic/dl-procinfo.c>
b9ba6d
+#endif
b9ba6d
--- libc/sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed.jj	2002-01-17 07:49:28.000000000 +0100
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed	2004-05-14 16:21:03.041325040 +0200
b9ba6d
@@ -1 +1,4 @@
b9ba6d
-s_^\(RTLDLIST=\)\([^ 	]*\)-ia64\(\.so\.[0-9.]*\)[ 	]*$_\1"\2-ia64\3 \2\3"_
b9ba6d
+/LD_TRACE_LOADED_OBJECTS=1/a\
b9ba6d
+add_env="$add_env LD_LIBRARY_VERSION=\\$verify_out"
b9ba6d
+s_^\(RTLDLIST=\)/lib64/ld\([^ 	]*\)-ia64\(\.so\.[0-9.]*\)[ 	]*$_\1"/lib/ld\2-ia64\3 /lib/ld\2\3"_
b9ba6d
+s_^\(RTLDLIST=\)\([^"][^ 	]*\)-ia64\(\.so\.[0-9.]*\)[ 	]*$_\1"\2-ia64\3 \2\3"_
b9ba6d
--- libc/sysdeps/unix/sysv/linux/ia64/ldconfig.h.jj	2001-07-06 06:56:17.000000000 +0200
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/ia64/ldconfig.h	2004-05-14 15:45:40.103783087 +0200
b9ba6d
@@ -1,4 +1,4 @@
b9ba6d
-/* Copyright (C) 2001 Free Software Foundation, Inc.
b9ba6d
+/* Copyright (C) 2001, 2004 Free Software Foundation, Inc.
b9ba6d
    This file is part of the GNU C Library.
b9ba6d
 
b9ba6d
    The GNU C Library is free software; you can redistribute it and/or
b9ba6d
@@ -19,7 +19,8 @@
b9ba6d
 #include <sysdeps/generic/ldconfig.h>
b9ba6d
 
b9ba6d
 #define SYSDEP_KNOWN_INTERPRETER_NAMES \
b9ba6d
-  { "/lib/ld-linux.so.2", FLAG_ELF_LIBC6 },
b9ba6d
+  { "/lib/ld-linux.so.2", FLAG_ELF_LIBC6 }, \
b9ba6d
+  { "/lib64/ld-linux-ia64.so.2", FLAG_ELF_LIBC6 },
b9ba6d
 #define SYSDEP_KNOWN_LIBRARY_NAMES \
b9ba6d
   { "libc.so.6", FLAG_ELF_LIBC6 },	\
b9ba6d
   { "libm.so.6", FLAG_ELF_LIBC6 },
b9ba6d
--- libc/sysdeps/unix/sysv/linux/ia64/dl-cache.h.jj	2001-07-06 06:56:17.000000000 +0200
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/ia64/dl-cache.h	2004-05-14 15:41:11.658891907 +0200
b9ba6d
@@ -1,5 +1,5 @@
b9ba6d
 /* Support for reading /etc/ld.so.cache files written by Linux ldconfig.
b9ba6d
-   Copyright (C) 2000 Free Software Foundation, Inc.
b9ba6d
+   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
b9ba6d
    This file is part of the GNU C Library.
b9ba6d
 
b9ba6d
    The GNU C Library is free software; you can redistribute it and/or
b9ba6d
@@ -22,4 +22,4 @@
b9ba6d
 #define _dl_cache_check_flags(flags) \
b9ba6d
   ((flags) == _DL_CACHE_DEFAULT_ID)
b9ba6d
 
b9ba6d
-#include_next <dl-cache.h>
b9ba6d
+#include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>
b9ba6d
--- libc/sysdeps/unix/sysv/linux/ia64/dl-procinfo.h.jj	2004-05-14 15:42:13.018895395 +0200
b9ba6d
+++ libc/sysdeps/unix/sysv/linux/ia64/dl-procinfo.h	2003-07-23 00:06:23.000000000 +0200
b9ba6d
@@ -0,0 +1,5 @@
b9ba6d
+#ifdef IS_IN_ldconfig
b9ba6d
+#include <sysdeps/unix/sysv/linux/i386/dl-procinfo.h>
b9ba6d
+#else
b9ba6d
+#include <sysdeps/generic/dl-procinfo.h>
b9ba6d
+#endif