Andreas Schwab 35bf20
--- glibc-2.12.2/ChangeLog
Andreas Schwab 35bf20
+++ /ChangeLog
Andreas Schwab 35bf20
@@ -329,6 +329,11 @@
Andreas Schwab 35bf20
 	(do_preload): Use __RTLD_SECURE instead of is_preloaded.
Andreas Schwab 35bf20
 	(dlmopen_doit): Add __RTLD_SECURE to mode bits.
Andreas Schwab 35bf20
 
Andreas Schwab 35bf20
+2010-12-13  Andreas Schwab  <schwab@redhat.com>
Andreas Schwab 35bf20
+
Andreas Schwab 35bf20
+	* elf/dl-object.c (_dl_new_object): Ignore origin of privileged
Andreas Schwab 35bf20
+	program.
Andreas Schwab 00e2af
+
Andreas Schwab 00e2af
 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
Andreas Schwab 00e2af
 
Andreas Schwab 00e2af
 	* string/bug-strstr1.c: New file.
Andreas Schwab 35bf20
@@ -375,6 +380,10 @@
Andreas Schwab a1a94e
 
Andreas Schwab a1a94e
 	* version.h (VERSION): Bump for 2.12.1 release.
Andreas Schwab a1a94e
 
Andreas Schwab 6a369e
+2010-06-21  Andreas Schwab  <schwab@redhat.com>
Andreas Schwab 6a369e
+
Andreas Schwab 6a369e
+	* sysdeps/i386/i686/Makefile: Don't pass -mtune to assembler.
Andreas Schwab 6a369e
+
Andreas Schwab 6a369e
 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
Andreas Schwab 6a369e
 
Andreas Schwab 6a369e
 	* elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
Andreas Schwab 35bf20
--- glibc-2.12.2/ChangeLog.15
Andreas Schwab 35bf20
+++ /ChangeLog.15
e72031
@@ -477,6 +477,14 @@
e72031
 
e72031
 2004-11-26  Jakub Jelinek  <jakub@redhat.com>
e72031
 
e72031
+	* posix/Makefile (generated: Add getconf.speclist.
e72031
+	($(inst_libexecdir)/getconf): Use getconf.speclist instead of
e72031
+	getconf output.
e72031
+	($(objpfx)getconf.speclist): New rule.
e72031
+	* posix/getconf.speclist.h: New file.
e72031
+
e72031
+2004-11-26  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
 	* sysdeps/generic/unsecvars.h (UNSECURE_ENVVARS): Add GETCONF_DIR.
e72031
 
e72031
 2004-11-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
83804e
@@ -1103,6 +1111,13 @@
e72031
 	* sysdeps/generic/tempname.c (__path_search): Add missing argument
e72031
 	TRY_TMPDIR.
e72031
 
e72031
+2004-11-02  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* include/features.h (__USE_FORTIFY_LEVEL): Also set for Red Hat
e72031
+	GCC 3.4.x-RH >= 3.4.2-8.
e72031
+	* debug/tst-chk1.c (do_test): Deal with GCC 3.4.x-RH not
e72031
+	being able to recognize subobjects.
e72031
+
e72031
 2004-10-31  Mariusz Mazur <mmazur@kernel.pl>
e72031
 
e72031
 	* sysdeps/unix/sysv/linux/alpha/setregid.c: New file.
83804e
@@ -1443,6 +1458,11 @@
e72031
 	* sysdeps/generic/readonly-area.c (__readonly_str): Renamed to ...
e72031
 	(__readonly_area): ... this.
e72031
 
e72031
+2004-10-19  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* include/features.h (__USE_FORTIFY_LEVEL): Enable even with
e72031
+	Red Hat gcc4 4.0.0 and above.
e72031
+
e72031
 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
e72031
 
e72031
 	* sysdeps/generic/strcpy_chk.c (__strcpy_chk): Speed up by checking
83804e
@@ -3182,6 +3202,23 @@
e72031
 	before return type.
e72031
 	* locale/localename.c (__current_locale_name): Likewise.
e72031
 
e72031
+2004-08-31  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* elf/ldconfig.c (parse_conf): Add prefix argument, prepend it
e72031
+	before arguments to add_dir and pass to parse_conf_include.
e72031
+	(parse_conf_include): Add prefix argument, pass it down to
e72031
+	parse_conf.
e72031
+	(main): Call arch_startup.  Adjust parse_conf caller.
e72031
+	Call add_arch_dirs.
e72031
+	* sysdeps/generic/dl-cache.h (arch_startup, add_arch_dirs): Define.
e72031
+	* sysdeps/unix/sysv/linux/i386/dl-cache.h: New file.
e72031
+	* sysdeps/unix/sysv/linux/ia64/dl-cache.h (EMUL_HACK, arch_startup,
e72031
+	add_arch_dirs): Define.
e72031
+	* sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Prepend
e72031
+	/emul/ia32-linux before the 32-bit ld.so pathname.
e72031
+	* sysdeps/unix/sysv/linux/ia64/dl-procinfo.c: New file.
e72031
+	* sysdeps/unix/sysv/linux/ia64/dl-procinfo.h: New file.
e72031
+
e72031
 2004-08-30  Roland McGrath  <roland@frob.com>
e72031
 
e72031
 	* scripts/extract-abilist.awk: If `lastversion' variable defined, omit
Andreas Schwab 35bf20
--- glibc-2.12.2/ChangeLog.16
Andreas Schwab 35bf20
+++ /ChangeLog.16
Andreas Schwab 6c0e60
@@ -2042,6 +2042,9 @@
e72031
 	(__MATHDECL_2): Use __REDIRECT_NTH instead of __REDIRECT
e72031
 	followed by __THROW.
e72031
 
e72031
+	* sysdeps/unix/sysv/linux/futimesat.c (futimesat): If
e72031
+	file == NULL, use __futimes unconditionally.
e72031
+
e72031
 2006-02-02  Ulrich Drepper  <drepper@redhat.com>
e72031
 
e72031
 	* sysdeps/unix/sysv/linux/futimesat.c [__NR_futimesat]
Andreas Schwab 6c0e60
@@ -2101,6 +2104,11 @@
e72031
 	* sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Fix a typo.
e72031
 	* sysdeps/s390/fpu/libm-test-ulps: Remove llrint ulps.
e72031
 
e72031
+2006-01-30  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* include/bits/stdlib-ldbl.h: New file.
e72031
+	* include/bits/wchar-ldbl.h: New file.
e72031
+
e72031
 2006-01-19  Thomas Schwinge  <tschwinge@gnu.org>
e72031
 
e72031
 	* libio/genops.c: Include <stdbool.h>.
Andreas Schwab 6c0e60
@@ -8922,6 +8930,12 @@
e72031
 	* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
e72031
 	(__argp_failure): Likewise.
e72031
 
e72031
+2005-08-08  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
e72031
+	Shift marked &errno down on big-endian instead of up.
e72031
+	* elf/tst-stackguard1.c (do_test): Fix a typo.
e72031
+
e72031
 2005-08-08  Ulrich Drepper  <drepper@redhat.com>
e72031
 
e72031
 	* nscd/cache.c (cache_add): Commit hash table and header to disk.
Andreas Schwab 6c0e60
@@ -9046,6 +9060,17 @@
e72031
 	__syslog_chk.
e72031
 	* misc/Versions: Export __syslog_chk and __vsyslog_chk.
e72031
 
e72031
+2005-07-29  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* sysdeps/unix/sysv/linux/dl-osinfo.h: Include errno.h, hp-timing.h,
e72031
+	endian.h.
e72031
+	(_dl_setup_stack_chk_guard): Even without
e72031
+	--enable-stackguard-randomization attempt to do some guard
e72031
+	randomization using hp-timing (if available) and kernel stack and
e72031
+	mmap randomization.
e72031
+	* elf/tst-stackguard1.c (do_test): Don't fail if the poor man's
e72031
+	randomization doesn't work well enough.
e72031
+
e72031
 2005-07-28  Thomas Schwinge  <schwinge@nic-nac-project.de>
e72031
 
e72031
 	[BZ #1137]
Andreas Schwab 35bf20
--- glibc-2.12.2/ChangeLog.17
Andreas Schwab 35bf20
+++ /ChangeLog.17
Andreas Schwab 35bf20
@@ -256,6 +256,12 @@
Andreas Schwab 571164
 
Andreas Schwab 571164
 	* Makerules (libc-abis): Fix search for libc-abis in add-ons.
Andreas Schwab 571164
 
Andreas Schwab 571164
+2010-04-06  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	* sysdeps/posix/getaddrinfo.c (default_scopes): Assign global
Andreas Schwab 571164
+	scope to RFC 1918 addresses.
Andreas Schwab 571164
+	* posix/gai.conf: Document difference from RFC 3484.
Andreas Schwab 571164
+
Andreas Schwab 571164
 2010-04-05  Thomas Schwinge  <thomas@schwinge.name>
Andreas Schwab 571164
 
Andreas Schwab 571164
 	* sysdeps/gnu/unwind-resume.c: New, moved from nptl/sysdeps/pthread/.
Andreas Schwab 35bf20
@@ -1010,6 +1016,19 @@
Andreas Schwab 571164
 	* sysdeps/x86_64/fpu/fegetenv.c: Likewise
Andreas Schwab 571164
 	* sysdeps/s390/fpu/fegetenv.c: Likewise.  Remove unused headers.
Andreas Schwab 571164
 
Andreas Schwab 571164
+2009-10-27  Aurelien Jarno  <aurelien@aurel32.net>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	[BZ #10855]
Andreas Schwab 571164
+	* locale/programs/locarchive.c: use MMAP_SHARED to reserve memory
Andreas Schwab 571164
+	used later with MMAP_FIXED | MMAP_SHARED to cope with different
Andreas Schwab 571164
+	alignment restrictions.
Andreas Schwab 571164
+
Andreas Schwab 571164
+2010-02-08  Andreas Schwab  <schwab@redhat.com>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	[BZ #11155]
Andreas Schwab 571164
+	* sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Include i386
Andreas Schwab 571164
+	version.
Andreas Schwab 571164
+
Andreas Schwab 571164
 2010-02-05  H.J. Lu  <hongjiu.lu@intel.com>
Andreas Schwab 571164
 
Andreas Schwab 571164
 	[BZ #11230]
Andreas Schwab 35bf20
@@ -2953,6 +2972,11 @@ d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 	* sysdeps/generic/ldsodefs.h (struct rtld_global): The map element in
Andreas Schwab 571164
 	the unique symbol hash table should not be const.
Andreas Schwab 571164
 
Andreas Schwab 571164
+2009-07-22  Jakub Jelinek  <jakub@redhat.com>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	* Makeconfig (ASFLAGS): Append $(sysdep-ASFLAGS).
Andreas Schwab 571164
+	* sysdeps/i386/Makefile (sysdep-ASFLAGS): Add -U__i686.
Andreas Schwab 571164
+
Andreas Schwab 571164
 2009-07-21  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 
Andreas Schwab 571164
 	* sysdeps/x86_64/multiarch/strstr.c: Minor cleanups.  Remove
Andreas Schwab 35bf20
@@ -3218,6 +3242,11 @@ d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 	out common code into new function get_common_indeces. Determine
Andreas Schwab 571164
 	extended family and model for Intel processors.
Andreas Schwab 571164
 
Andreas Schwab 571164
+2009-06-26  Andreas Schwab  <aschwab@redhat.com>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	* timezone/zic.c (stringzone): Don't try to generate a POSIX TZ
Andreas Schwab 571164
+	string when the timezone ends in DST.
Andreas Schwab 571164
+
Andreas Schwab 571164
 2009-06-26  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 
Andreas Schwab 571164
 	* resolv/resolv.h: Define RES_SNGLKUPREOP.
Andreas Schwab 35bf20
@@ -11911,6 +11940,10 @@ d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 	[BZ #4368]
Andreas Schwab 571164
 	* stdlib/stdlib.h: Remove obsolete part of comment for realpath.
Andreas Schwab 571164
 
Andreas Schwab 571164
+2007-04-16  Jakub Jelinek  <jakub@redhat.com>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	* locale/programs/locarchive.c (add_alias, insert_name): Remove static.
Andreas Schwab 571164
+
Andreas Schwab 571164
 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 
Andreas Schwab 571164
 	[BZ #4364]
Andreas Schwab 35bf20
@@ -13168,6 +13201,15 @@ d2009-10-30  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 	separators also if no non-zero digits found.
Andreas Schwab 571164
 	* stdlib/Makefile (tests): Add tst-strtod3.
Andreas Schwab 571164
 
Andreas Schwab 571164
+2006-12-10  Jakub Jelinek  <jakub@redhat.com>
Andreas Schwab 571164
+
Andreas Schwab 571164
+	* sysdeps/unix/sysv/linux/netlinkaccess.h: Include linux/if_addr.h
Andreas Schwab 571164
+	if IFA_MAX is not defined.
Andreas Schwab 571164
+	(IFA_RTA, IFA_PAYLOAD, IFLA_RTA, IFLA_PAYLOAD): Define if not
Andreas Schwab 571164
+	defined.
Andreas Schwab 571164
+	* sysdeps/unix/sysv/linux/check_pf.c: Include netlinkaccess.h
Andreas Schwab 571164
+	instead of asm/types.h, linux/netlink.h and linux/rtnetlink.h.
Andreas Schwab 571164
+
Andreas Schwab 571164
 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
Andreas Schwab 571164
 
Andreas Schwab 571164
 	[BZ #3632]
Andreas Schwab 35bf20
--- glibc-2.12.2/Makeconfig
Andreas Schwab 35bf20
+++ /Makeconfig
a5c055
@@ -789,12 +789,12 @@ endif
Andreas Schwab 622760
 # The assembler can generate debug information too.
Andreas Schwab 622760
 ifndef ASFLAGS
Andreas Schwab 622760
 ifeq ($(have-cpp-asm-debuginfo),yes)
Andreas Schwab aa2ceb
-ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
Andreas Schwab aa2ceb
+ASFLAGS = $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
Andreas Schwab 622760
 else
Andreas Schwab 622760
-ASFLAGS :=
Andreas Schwab 622760
+ASFLAGS =
Andreas Schwab 622760
 endif
Andreas Schwab 622760
 endif
Andreas Schwab 622760
-ASFLAGS += $(ASFLAGS-config) $(asflags-cpu)
Andreas Schwab 622760
+ASFLAGS += $(ASFLAGS-config) $(asflags-cpu) $(sysdep-ASFLAGS)
Andreas Schwab 622760
 
Andreas Schwab 622760
 ifndef BUILD_CC
Andreas Schwab 622760
 BUILD_CC = $(CC)
Andreas Schwab 35bf20
--- glibc-2.12.2/csu/Makefile
Andreas Schwab 35bf20
+++ /csu/Makefile
21860b
@@ -93,7 +93,8 @@ omit-deps += $(crtstuff)
21860b
 $(crtstuff:%=$(objpfx)%.o): %.o: %.S $(objpfx)defs.h
21860b
 	$(compile.S) -g0 $(ASFLAGS-.os) -o $@
21860b
 
21860b
-CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
21860b
+CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time) \
21860b
+		    -fno-asynchronous-unwind-tables
21860b
 
21860b
 vpath initfini.c $(sysdirs)
21860b
 
Andreas Schwab 35bf20
--- glibc-2.12.2/csu/elf-init.c
Andreas Schwab 35bf20
+++ /csu/elf-init.c
Andreas Schwab 571164
@@ -63,6 +63,23 @@ extern void (*__init_array_end []) (int, char **, char **)
e72031
 extern void (*__fini_array_start []) (void) attribute_hidden;
e72031
 extern void (*__fini_array_end []) (void) attribute_hidden;
e72031
 
e72031
+#if defined HAVE_VISIBILITY_ATTRIBUTE \
e72031
+    && (defined SHARED || defined LIBC_NONSHARED)
e72031
+# define hidden_undef_2(x) #x
e72031
+# define hidden_undef_1(x) hidden_undef_2 (x)
e72031
+# define hidden_undef(x) \
e72031
+  __asm (hidden_undef_1 (ASM_GLOBAL_DIRECTIVE) " " #x); \
e72031
+  __asm (".hidden " #x);
e72031
+#else
e72031
+# define hidden_undef(x)
e72031
+#endif
e72031
+
e72031
+hidden_undef (__preinit_array_start)
e72031
+hidden_undef (__preinit_array_end)
e72031
+hidden_undef (__init_array_start)
e72031
+hidden_undef (__init_array_end)
e72031
+hidden_undef (__fini_array_start)
e72031
+hidden_undef (__fini_array_end)
e72031
 
e72031
 /* These function symbols are provided for the .init/.fini section entry
e72031
    points automagically by the linker.  */
Andreas Schwab 35bf20
--- glibc-2.12.2/debug/tst-chk1.c
Andreas Schwab 35bf20
+++ /debug/tst-chk1.c
e72031
@@ -17,6 +17,9 @@
e72031
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
e72031
    02111-1307 USA.  */
e72031
 
e72031
+/* Hack: make sure GCC doesn't know __chk_fail () will not return.  */
e72031
+#define __noreturn__
e72031
+
e72031
 #include <assert.h>
e72031
 #include <fcntl.h>
e72031
 #include <locale.h>
ffc48a
@@ -242,7 +245,7 @@ do_test (void)
e72031
   if (memcmp (a.buf1, "aabcdabcjj", 10))
e72031
     FAIL ();
e72031
 
e72031
-#if __USE_FORTIFY_LEVEL < 2
e72031
+#if __USE_FORTIFY_LEVEL < 2 || !__GNUC_PREREQ (4, 0)
e72031
   /* The following tests are supposed to crash with -D_FORTIFY_SOURCE=2
e72031
      and sufficient GCC support, as the string operations overflow
e72031
      from a.buf1 into a.buf2.  */
ffc48a
@@ -357,7 +360,7 @@ do_test (void)
e72031
   memset (a.buf1 + 9, 'j', l0 + 2);
e72031
   CHK_FAIL_END
e72031
 
4c53b1
-# if __USE_FORTIFY_LEVEL >= 2
4c53b1
+# if __USE_FORTIFY_LEVEL >= 2 && __GNUC_PREREQ (4, 0)
4c53b1
 #  define O 0
4c53b1
 # else
4c53b1
 #  define O 1
Andreas Schwab 35bf20
--- glibc-2.12.2/elf/dl-object.c
Andreas Schwab 35bf20
+++ /elf/dl-object.c
Andreas Schwab 35bf20
@@ -220,6 +220,9 @@ _dl_new_object (char *realname, const char *libname, int type,
Andreas Schwab 35bf20
     out:
Andreas Schwab 35bf20
       new->l_origin = origin;
Andreas Schwab 35bf20
     }
Andreas Schwab 35bf20
+  else if (INTUSE(__libc_enable_secure) && type == lt_executable)
Andreas Schwab 35bf20
+    /* The origin of a privileged program cannot be trusted.  */
Andreas Schwab 35bf20
+    new->l_origin = (char *) -1;
Andreas Schwab 8c320b
 
Andreas Schwab 35bf20
   return new;
Andreas Schwab 35bf20
 }
Andreas Schwab 35bf20
--- glibc-2.12.2/elf/ldconfig.c
Andreas Schwab 35bf20
+++ /elf/ldconfig.c
a5c055
@@ -1031,17 +1031,19 @@ search_dirs (void)
e72031
 
e72031
 
e72031
 static void parse_conf_include (const char *config_file, unsigned int lineno,
e72031
-				bool do_chroot, const char *pattern);
e72031
+				const char *prefix, bool do_chroot,
e72031
+				const char *pattern);
e72031
 
e72031
 /* Parse configuration file.  */
e72031
 static void
e72031
-parse_conf (const char *filename, bool do_chroot)
e72031
+parse_conf (const char *filename, const char *prefix, bool do_chroot)
e72031
 {
e72031
   FILE *file = NULL;
e72031
   char *line = NULL;
e72031
   const char *canon;
e72031
   size_t len = 0;
e72031
   unsigned int lineno;
e72031
+  size_t prefix_len = prefix ? strlen (prefix) : 0;
e72031
 
e72031
   if (do_chroot && opt_chroot)
e72031
     {
Andreas Schwab 571164
@@ -1102,7 +1104,14 @@ parse_conf (const char *filename, bool do_chroot)
e72031
 	  cp += 8;
e72031
 	  while ((dir = strsep (&cp, " \t")) != NULL)
e72031
 	    if (dir[0] != '\0')
e72031
-	      parse_conf_include (filename, lineno, do_chroot, dir);
e72031
+	      parse_conf_include (filename, lineno, prefix, do_chroot, dir);
e72031
+	}
e72031
+      else if (prefix != NULL)
e72031
+	{
e72031
+	  size_t cp_len = strlen (cp);
e72031
+	  char new_cp [prefix_len + cp_len + 1];
e72031
+	  memcpy (mempcpy (new_cp, prefix, prefix_len), cp, cp_len + 1);
e72031
+	  add_dir (new_cp);
e72031
 	}
e72031
       else if (!strncasecmp (cp, "hwcap", 5) && isblank (cp[5]))
e72031
 	{
Andreas Schwab 571164
@@ -1165,7 +1174,7 @@ parse_conf (const char *filename, bool do_chroot)
e72031
    config files to read.  */
e72031
 static void
e72031
 parse_conf_include (const char *config_file, unsigned int lineno,
e72031
-		    bool do_chroot, const char *pattern)
e72031
+		    const char *prefix, bool do_chroot, const char *pattern)
e72031
 {
e72031
   if (opt_chroot && pattern[0] != '/')
e72031
     error (EXIT_FAILURE, 0,
Andreas Schwab 571164
@@ -1197,7 +1206,7 @@ parse_conf_include (const char *config_file, unsigned int lineno,
e72031
     {
e72031
     case 0:
e72031
       for (size_t i = 0; i < gl.gl_pathc; ++i)
e72031
-	parse_conf (gl.gl_pathv[i], false);
e72031
+	parse_conf (gl.gl_pathv[i], prefix, false);
e72031
       globfree64 (&gl);
e72031
       break;
e72031
 
a5c055
@@ -1240,6 +1249,8 @@ main (int argc, char **argv)
55601b
   /* Set the text message domain.  */
55601b
   textdomain (_libc_intl_domainname);
e72031
 
e72031
+  arch_startup (argc, argv);
e72031
+
e72031
   /* Parse and process arguments.  */
55601b
   int remaining;
e72031
   argp_parse (&argp, argc, argv, 0, &remaining, NULL);
a5c055
@@ -1349,12 +1360,14 @@ main (int argc, char **argv)
e72031
 
e72031
   if (!opt_only_cline)
e72031
     {
e72031
-      parse_conf (config_file, true);
e72031
+      parse_conf (config_file, NULL, true);
e72031
 
e72031
       /* Always add the standard search paths.  */
e72031
       add_system_dir (SLIBDIR);
e72031
       if (strcmp (SLIBDIR, LIBDIR))
e72031
 	add_system_dir (LIBDIR);
e72031
+
e72031
+      add_arch_dirs (config_file);
e72031
     }
e72031
 
Andreas Schwab 571164
   const char *aux_cache_file = _PATH_LDCONFIG_AUX_CACHE;
Andreas Schwab 35bf20
--- glibc-2.12.2/elf/tst-stackguard1.c
Andreas Schwab 35bf20
+++ /elf/tst-stackguard1.c
e72031
@@ -160,17 +160,21 @@ do_test (void)
e72031
      the 16 runs, something is very wrong.  */
e72031
   int ndifferences = 0;
e72031
   int ndefaults = 0;
e72031
+  int npartlyrandomized = 0;
e72031
   for (i = 0; i < N; ++i) 
e72031
     {
e72031
       if (child_stack_chk_guards[i] != child_stack_chk_guards[i+1])
e72031
 	ndifferences++;
e72031
       else if (child_stack_chk_guards[i] == default_guard)
e72031
 	ndefaults++;
e72031
+      else if (*(char *) &child_stack_chk_guards[i] == 0)
e72031
+	npartlyrandomized++;
e72031
     }
e72031
 
e72031
-  printf ("differences %d defaults %d\n", ndifferences, ndefaults);
e72031
+  printf ("differences %d defaults %d partly randomized %d\n",
e72031
+	  ndifferences, ndefaults, npartlyrandomized);
e72031
 
e72031
-  if (ndifferences < N / 2 && ndefaults < N / 2)
e72031
+  if ((ndifferences + ndefaults + npartlyrandomized) < 3 * N / 4)
e72031
     {
e72031
       puts ("stack guard canaries are not randomized enough");
e72031
       puts ("nor equal to the default canary value");
Andreas Schwab 35bf20
--- glibc-2.12.2/include/bits/stdlib-ldbl.h
Andreas Schwab 35bf20
+++ /include/bits/stdlib-ldbl.h
Andreas Schwab 237bb9
@@ -0,0 +1 @@
Andreas Schwab 237bb9
+#include <stdlib/bits/stdlib-ldbl.h>
Andreas Schwab 35bf20
--- glibc-2.12.2/include/bits/wchar-ldbl.h
Andreas Schwab 35bf20
+++ /include/bits/wchar-ldbl.h
Andreas Schwab 237bb9
@@ -0,0 +1 @@
Andreas Schwab 237bb9
+#include <wcsmbs/bits/wchar-ldbl.h>
Andreas Schwab 35bf20
--- glibc-2.12.2/include/features.h
Andreas Schwab 35bf20
+++ /include/features.h
Andreas Schwab c1875b
@@ -308,8 +308,13 @@
e72031
 #endif
e72031
 
e72031
 #if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
e72031
-    && __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
59c560
-# if _FORTIFY_SOURCE > 1
59c560
+    && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
59c560
+# if !__GNUC_PREREQ (4, 1)
59c560
+#  ifdef __GNUC_RH_RELEASE__
59c560
+#   warning _FORTIFY_SOURCE supported only with GCC 4.1 and later
59c560
+#  endif
59c560
+#  define __USE_FORTIFY_LEVEL 0
59c560
+# elif _FORTIFY_SOURCE > 1
e72031
 #  define __USE_FORTIFY_LEVEL 2
e72031
 # else
59c560
 #  define __USE_FORTIFY_LEVEL 1
Andreas Schwab 35bf20
--- glibc-2.12.2/intl/locale.alias
Andreas Schwab 35bf20
+++ /intl/locale.alias
aaaf28
@@ -57,8 +57,6 @@ korean		ko_KR.eucKR
e72031
 korean.euc 	ko_KR.eucKR
e72031
 ko_KR		ko_KR.eucKR
e72031
 lithuanian      lt_LT.ISO-8859-13
e72031
-no_NO		nb_NO.ISO-8859-1
e72031
-no_NO.ISO-8859-1 nb_NO.ISO-8859-1
e72031
 norwegian       nb_NO.ISO-8859-1
e72031
 nynorsk		nn_NO.ISO-8859-1
e72031
 polish          pl_PL.ISO-8859-2
Andreas Schwab 35bf20
--- glibc-2.12.2/libio/stdio.h
Andreas Schwab 35bf20
+++ /libio/stdio.h
Andreas Schwab e7298f
@@ -165,10 +165,12 @@ typedef _G_fpos64_t fpos64_t;
e72031
 extern struct _IO_FILE *stdin;		/* Standard input stream.  */
e72031
 extern struct _IO_FILE *stdout;		/* Standard output stream.  */
e72031
 extern struct _IO_FILE *stderr;		/* Standard error output stream.  */
e72031
+#ifdef __STDC__
e72031
 /* C89/C99 say they're macros.  Make them happy.  */
e72031
 #define stdin stdin
e72031
 #define stdout stdout
e72031
 #define stderr stderr
e72031
+#endif
e72031
 
e72031
 __BEGIN_NAMESPACE_STD
e72031
 /* Remove file FILENAME.  */
Andreas Schwab 35bf20
--- glibc-2.12.2/locale/iso-4217.def
Andreas Schwab 35bf20
+++ /locale/iso-4217.def
e72031
@@ -8,6 +8,7 @@
e72031
  *
e72031
  * !!! The list has to be sorted !!!
e72031
  */
e72031
+DEFINE_INT_CURR("ADP")		/* Andorran Peseta -> EUR  */
e72031
 DEFINE_INT_CURR("AED")		/* United Arab Emirates Dirham  */
e72031
 DEFINE_INT_CURR("AFN")		/* Afghanistan Afgani  */
e72031
 DEFINE_INT_CURR("ALL")		/* Albanian Lek  */
Andreas Schwab 571164
@@ -15,12 +16,14 @@ DEFINE_INT_CURR("AMD")		/* Armenia Dram  */
e72031
 DEFINE_INT_CURR("ANG")		/* Netherlands Antilles  */
e72031
 DEFINE_INT_CURR("AOA")		/* Angolan Kwanza  */
e72031
 DEFINE_INT_CURR("ARS")		/* Argentine Peso  */
e72031
+DEFINE_INT_CURR("ATS")		/* Austrian Schilling -> EUR  */
e72031
 DEFINE_INT_CURR("AUD")		/* Australian Dollar  */
e72031
 DEFINE_INT_CURR("AWG")		/* Aruba Guilder  */
e72031
 DEFINE_INT_CURR("AZM")		/* Azerbaijan Manat  */
e72031
 DEFINE_INT_CURR("BAM")		/* Bosnian and Herzegovina Convertible Mark  */
e72031
 DEFINE_INT_CURR("BBD")		/* Barbados Dollar  */
e72031
 DEFINE_INT_CURR("BDT")		/* Bangladesh Taka  */
e72031
+DEFINE_INT_CURR("BEF")		/* Belgian Franc -> EUR  */
e72031
 DEFINE_INT_CURR("BGN")		/* Bulgarian Lev  */
e72031
 DEFINE_INT_CURR("BHD")		/* Bahraini Dinar  */
e72031
 DEFINE_INT_CURR("BIF")		/* Burundi Franc  */
Andreas Schwab 571164
@@ -44,6 +47,7 @@ DEFINE_INT_CURR("CUP")		/* Cuban Peso  */
e72031
 DEFINE_INT_CURR("CVE")		/* Cape Verde Escudo  */
e72031
 DEFINE_INT_CURR("CYP")		/* Cypriot Pound  */
e72031
 DEFINE_INT_CURR("CZK")		/* Czech Koruna  */
e72031
+DEFINE_INT_CURR("DEM")		/* German Mark -> EUR  */
e72031
 DEFINE_INT_CURR("DJF")		/* Djibouti Franc  */
e72031
 DEFINE_INT_CURR("DKK")		/* Danish Krone (Faroe Islands, Greenland)  */
e72031
 DEFINE_INT_CURR("DOP")		/* Dominican Republic  */
Andreas Schwab 571164
@@ -51,16 +55,20 @@ DEFINE_INT_CURR("DZD")		/* Algerian Dinar  */
e72031
 DEFINE_INT_CURR("EEK")		/* Estonian Kroon  */
e72031
 DEFINE_INT_CURR("EGP")		/* Egyptian Pound  */
e72031
 DEFINE_INT_CURR("ERN")		/* Eritrean Nakfa  */
e72031
+DEFINE_INT_CURR("ESP")		/* Spanish Peseta -> EUR  */
e72031
 DEFINE_INT_CURR("ETB")		/* Ethiopian Birr  */
e72031
 DEFINE_INT_CURR("EUR")		/* European Union Euro  */
e72031
+DEFINE_INT_CURR("FIM")		/* Finnish Markka -> EUR  */
e72031
 DEFINE_INT_CURR("FJD")		/* Fiji Dollar  */
e72031
 DEFINE_INT_CURR("FKP")		/* Falkland Islands Pound (Malvinas)  */
e72031
+DEFINE_INT_CURR("FRF")		/* French Franc -> EUR  */
e72031
 DEFINE_INT_CURR("GBP")		/* British Pound  */
e72031
 DEFINE_INT_CURR("GEL")		/* Georgia Lari  */
e72031
 DEFINE_INT_CURR("GHC")		/* Ghana Cedi  */
e72031
 DEFINE_INT_CURR("GIP")		/* Gibraltar Pound  */
e72031
 DEFINE_INT_CURR("GMD")		/* Gambian Dalasi  */
e72031
 DEFINE_INT_CURR("GNF")		/* Guinea Franc  */
e72031
+DEFINE_INT_CURR("GRD")		/* Greek Drachma -> EUR  */
e72031
 DEFINE_INT_CURR("GTQ")		/* Guatemala Quetzal  */
e72031
 DEFINE_INT_CURR("GYD")		/* Guyana Dollar  */
e72031
 DEFINE_INT_CURR("HKD")		/* Hong Kong Dollar  */
Andreas Schwab 571164
@@ -69,12 +77,14 @@ DEFINE_INT_CURR("HRK")		/* Croatia Kuna  */
e72031
 DEFINE_INT_CURR("HTG")		/* Haiti Gourde  */
e72031
 DEFINE_INT_CURR("HUF")		/* Hungarian Forint  */
e72031
 DEFINE_INT_CURR("IDR")		/* Indonesia Rupiah  */
e72031
+DEFINE_INT_CURR("IEP")		/* Irish Pound -> EUR  */
e72031
 DEFINE_INT_CURR("ILS")		/* Israeli Shekel  */
e72031
 DEFINE_INT_CURR("IMP")		/* Isle of Man Pounds  */
e72031
 DEFINE_INT_CURR("INR")		/* Indian Rupee (Bhutan)  */
e72031
 DEFINE_INT_CURR("IQD")		/* Iraqi Dinar  */
e72031
 DEFINE_INT_CURR("IRR")		/* Iranian Rial  */
e72031
 DEFINE_INT_CURR("ISK")		/* Iceland Krona  */
e72031
+DEFINE_INT_CURR("ITL")		/* Italian Lira -> EUR  */
e72031
 DEFINE_INT_CURR("JEP")		/* Jersey Pound  */
e72031
 DEFINE_INT_CURR("JMD")		/* Jamaican Dollar  */
e72031
 DEFINE_INT_CURR("JOD")		/* Jordanian Dinar  */
Andreas Schwab 571164
@@ -94,6 +104,7 @@ DEFINE_INT_CURR("LKR")		/* Sri Lankan Rupee  */
e72031
 DEFINE_INT_CURR("LRD")		/* Liberian Dollar  */
e72031
 DEFINE_INT_CURR("LSL")		/* Lesotho Maloti  */
e72031
 DEFINE_INT_CURR("LTL")		/* Lithuanian Litas  */
e72031
+DEFINE_INT_CURR("LUF")		/* Luxembourg Franc -> EUR  */
e72031
 DEFINE_INT_CURR("LVL")		/* Latvia Lat  */
e72031
 DEFINE_INT_CURR("LYD")		/* Libyan Arab Jamahiriya Dinar  */
e72031
 DEFINE_INT_CURR("MAD")		/* Moroccan Dirham  */
Andreas Schwab 571164
@@ -114,6 +125,7 @@ DEFINE_INT_CURR("MZM")		/* Mozambique Metical  */
e72031
 DEFINE_INT_CURR("NAD")		/* Namibia Dollar  */
e72031
 DEFINE_INT_CURR("NGN")		/* Nigeria Naira  */
e72031
 DEFINE_INT_CURR("NIO")		/* Nicaragua Cordoba Oro  */
e72031
+DEFINE_INT_CURR("NLG")		/* Netherlands Guilder -> EUR  */
e72031
 DEFINE_INT_CURR("NOK")		/* Norwegian Krone  */
e72031
 DEFINE_INT_CURR("NPR")		/* Nepalese Rupee  */
e72031
 DEFINE_INT_CURR("NZD")		/* New Zealand Dollar  */
Andreas Schwab 571164
@@ -124,6 +136,7 @@ DEFINE_INT_CURR("PGK")		/* Papau New Guinea Kina  */
e72031
 DEFINE_INT_CURR("PHP")		/* Philippines Peso  */
e72031
 DEFINE_INT_CURR("PKR")		/* Pakistan Rupee  */
e72031
 DEFINE_INT_CURR("PLN")		/* Polish Zloty  */
e72031
+DEFINE_INT_CURR("PTE")		/* Portugese Escudo -> EUR  */
e72031
 DEFINE_INT_CURR("PYG")		/* Paraguay Guarani  */
e72031
 DEFINE_INT_CURR("QAR")		/* Qatar Rial  */
e72031
 DEFINE_INT_CURR("ROL")		/* Romanian Leu  */
Andreas Schwab 35bf20
--- glibc-2.12.2/locale/programs/locarchive.c
Andreas Schwab 35bf20
+++ /locale/programs/locarchive.c
Andreas Schwab 571164
@@ -134,7 +134,7 @@ create_archive (const char *archivefname, struct locarhandle *ah)
Andreas Schwab f3e82c
   size_t reserved = RESERVE_MMAP_SIZE;
Andreas Schwab f3e82c
   int xflags = 0;
Andreas Schwab f3e82c
   if (total < reserved
Andreas Schwab f3e82c
-      && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_PRIVATE | MAP_ANON,
Andreas Schwab f3e82c
+      && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_SHARED | MAP_ANON,
Andreas Schwab f3e82c
 		       -1, 0)) != MAP_FAILED))
Andreas Schwab f3e82c
     xflags = MAP_FIXED;
Andreas Schwab f3e82c
   else
Andreas Schwab 571164
@@ -241,9 +241,9 @@ oldlocrecentcmp (const void *a, const void *b)
7d351d
 /* forward decls for below */
7d351d
 static uint32_t add_locale (struct locarhandle *ah, const char *name,
7d351d
 			    locale_data_t data, bool replace);
7d351d
-static void add_alias (struct locarhandle *ah, const char *alias,
7d351d
-		       bool replace, const char *oldname,
7d351d
-		       uint32_t *locrec_offset_p);
7d351d
+void add_alias (struct locarhandle *ah, const char *alias,
7d351d
+		bool replace, const char *oldname,
7d351d
+		uint32_t *locrec_offset_p);
7d351d
 
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
 static bool
Andreas Schwab 571164
@@ -396,7 +396,7 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head)
Andreas Schwab f3e82c
   size_t reserved = RESERVE_MMAP_SIZE;
Andreas Schwab f3e82c
   int xflags = 0;
Andreas Schwab f3e82c
   if (total < reserved
Andreas Schwab f3e82c
-      && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_PRIVATE | MAP_ANON,
Andreas Schwab f3e82c
+      && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_SHARED | MAP_ANON,
Andreas Schwab f3e82c
 		       -1, 0)) != MAP_FAILED))
Andreas Schwab f3e82c
     xflags = MAP_FIXED;
Andreas Schwab f3e82c
   else
Andreas Schwab 571164
@@ -614,7 +614,7 @@ open_archive (struct locarhandle *ah, bool readonly)
Andreas Schwab f3e82c
   int xflags = 0;
Andreas Schwab f3e82c
   void *p;
Andreas Schwab f3e82c
   if (st.st_size < reserved
Andreas Schwab f3e82c
-      && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_PRIVATE | MAP_ANON,
Andreas Schwab f3e82c
+      && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_SHARED | MAP_ANON,
Andreas Schwab f3e82c
 		       -1, 0)) != MAP_FAILED))
Andreas Schwab f3e82c
     xflags = MAP_FIXED;
Andreas Schwab f3e82c
   else
Andreas Schwab 237bb9
@@ -649,7 +649,7 @@ close_archive (struct locarhandle *ah)
7d351d
 #include "../../intl/explodename.c"
7d351d
 #include "../../intl/l10nflist.c"
7d351d
 
7d351d
-static struct namehashent *
7d351d
+struct namehashent *
7d351d
 insert_name (struct locarhandle *ah,
7d351d
 	     const char *name, size_t name_len, bool replace)
7d351d
 {
Andreas Schwab 237bb9
@@ -707,7 +707,7 @@ insert_name (struct locarhandle *ah,
7d351d
   return &namehashtab[idx];
7d351d
 }
7d351d
 
7d351d
-static void
7d351d
+void
7d351d
 add_alias (struct locarhandle *ah, const char *alias, bool replace,
7d351d
 	   const char *oldname, uint32_t *locrec_offset_p)
7d351d
 {
Andreas Schwab 35bf20
--- glibc-2.12.2/localedata/Makefile
Andreas Schwab 35bf20
+++ /localedata/Makefile
Andreas Schwab 571164
@@ -227,6 +227,7 @@ $(INSTALL-SUPPORTED-LOCALES): install-locales-dir
e72031
 	echo -n '...'; \
e72031
 	input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
e72031
 	$(LOCALEDEF) --alias-file=../intl/locale.alias \
e72031
+		     --no-archive \
e72031
 		     -i locales/$$input -c -f charmaps/$$charset \
e72031
 		     $(addprefix --prefix=,$(install_root)) $$locale; \
e72031
 	echo ' done'; \
Andreas Schwab 35bf20
--- glibc-2.12.2/localedata/SUPPORTED
Andreas Schwab 35bf20
+++ /localedata/SUPPORTED
Andreas Schwab dd550c
@@ -85,6 +85,7 @@ cy_GB.UTF-8/UTF-8 \
e72031
 cy_GB/ISO-8859-14 \
e72031
 da_DK.UTF-8/UTF-8 \
e72031
 da_DK/ISO-8859-1 \
e72031
+da_DK.ISO-8859-15/ISO-8859-15 \
e72031
 de_AT.UTF-8/UTF-8 \
e72031
 de_AT/ISO-8859-1 \
e72031
 de_AT@euro/ISO-8859-15 \
Andreas Schwab dd550c
@@ -116,6 +117,7 @@ en_DK.UTF-8/UTF-8 \
e72031
 en_DK/ISO-8859-1 \
e72031
 en_GB.UTF-8/UTF-8 \
e72031
 en_GB/ISO-8859-1 \
e72031
+en_GB.ISO-8859-15/ISO-8859-15 \
e72031
 en_HK.UTF-8/UTF-8 \
e72031
 en_HK/ISO-8859-1 \
e72031
 en_IE.UTF-8/UTF-8 \
Andreas Schwab dd550c
@@ -131,6 +133,7 @@ en_SG.UTF-8/UTF-8 \
e72031
 en_SG/ISO-8859-1 \
e72031
 en_US.UTF-8/UTF-8 \
e72031
 en_US/ISO-8859-1 \
e72031
+en_US.ISO-8859-15/ISO-8859-15 \
e72031
 en_ZA.UTF-8/UTF-8 \
e72031
 en_ZA/ISO-8859-1 \
e72031
 en_ZW.UTF-8/UTF-8 \
Andreas Schwab dd550c
@@ -307,6 +310,8 @@ nl_NL/ISO-8859-1 \
e72031
 nl_NL@euro/ISO-8859-15 \
e72031
 nn_NO.UTF-8/UTF-8 \
e72031
 nn_NO/ISO-8859-1 \
e72031
+no_NO.UTF-8/UTF-8 \
e72031
+no_NO/ISO-8859-1 \
e72031
 nr_ZA/UTF-8 \
e72031
 nso_ZA/UTF-8 \
e72031
 oc_FR.UTF-8/UTF-8 \
Andreas Schwab dd550c
@@ -367,6 +372,7 @@ sv_FI/ISO-8859-1 \
e72031
 sv_FI@euro/ISO-8859-15 \
e72031
 sv_SE.UTF-8/UTF-8 \
e72031
 sv_SE/ISO-8859-1 \
e72031
+sv_SE.ISO-8859-15/ISO-8859-15 \
e72031
 ta_IN/UTF-8 \
e72031
 te_IN/UTF-8 \
e72031
 tg_TJ.UTF-8/UTF-8 \
Andreas Schwab 35bf20
--- glibc-2.12.2/localedata/locales/cy_GB
Andreas Schwab 35bf20
+++ /localedata/locales/cy_GB
Andreas Schwab 571164
@@ -248,8 +248,11 @@ mon         "<U0049><U006F><U006E><U0061><U0077><U0072>";/
e72031
 d_t_fmt     "<U0044><U0079><U0064><U0064><U0020><U0025><U0041><U0020><U0025><U0064><U0020><U006d><U0069><U0073><U0020><U0025><U0042><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
e72031
 d_fmt       "<U0025><U0064><U002E><U0025><U006D><U002E><U0025><U0079>"
e72031
 t_fmt       "<U0025><U0054>"
e72031
-am_pm       "";""
e72031
-t_fmt_ampm  ""
e72031
+am_pm       "<U0041><U004D>";"<U0050><U004D>"
e72031
+t_fmt_ampm  "<U0025><U006C><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0050><U0020><U0025><U005A>"
e72031
+date_fmt    "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
e72031
+<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
e72031
+<U0025><U005A><U0020><U0025><U0059>"
e72031
 END LC_TIME
e72031
 
e72031
 LC_MESSAGES
Andreas Schwab 35bf20
--- glibc-2.12.2/localedata/locales/en_GB
Andreas Schwab 35bf20
+++ /localedata/locales/en_GB
Andreas Schwab 571164
@@ -116,8 +116,8 @@ mon         "<U004A><U0061><U006E><U0075><U0061><U0072><U0079>";/
e72031
 d_t_fmt     "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0054><U0020><U0025><U005A>"
e72031
 d_fmt       "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
e72031
 t_fmt       "<U0025><U0054>"
e72031
-am_pm       "";""
e72031
-t_fmt_ampm  ""
e72031
+am_pm       "<U0041><U004D>";"<U0050><U004D>"
e72031
+t_fmt_ampm  "<U0025><U006C><U003A><U0025><U004D><U003A><U0025><U0053><U0020><U0025><U0050><U0020><U0025><U005A>"
e72031
 date_fmt	"<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
e72031
 <U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
e72031
 <U0025><U005A><U0020><U0025><U0059>"
Andreas Schwab 35bf20
--- glibc-2.12.2/localedata/locales/no_NO
Andreas Schwab 35bf20
+++ /localedata/locales/no_NO
e72031
@@ -0,0 +1,69 @@
e72031
+escape_char	/
e72031
+comment_char    %
e72031
+
e72031
+% Norwegian language locale for Norway
e72031
+% Source: Norsk Standardiseringsforbund
e72031
+% Address: University Library,
e72031
+%   Drammensveien 41, N-9242 Oslo, Norge
e72031
+% Contact: Kolbjoern Aamboe
e72031
+% Tel: +47 - 22859109
e72031
+% Fax: +47 - 22434497
e72031
+% Email: kolbjorn.aambo@usit.uio.no
e72031
+% Language: no
e72031
+% Territory: NO
e72031
+% Revision: 4.3
e72031
+% Date: 1996-10-15
e72031
+% Application: general
e72031
+% Users: general
e72031
+% Repertoiremap: mnemonic.ds
e72031
+% Charset: ISO-8859-1
e72031
+% Distribution and use is free, also
e72031
+% for commercial purposes.
e72031
+
e72031
+LC_IDENTIFICATION
e72031
+copy "nb_NO"
e72031
+END LC_IDENTIFICATION
e72031
+
e72031
+LC_COLLATE
e72031
+copy "nb_NO"
e72031
+END LC_COLLATE
e72031
+
e72031
+LC_CTYPE
e72031
+copy "nb_NO"
e72031
+END LC_CTYPE
e72031
+
e72031
+LC_MONETARY
e72031
+copy "nb_NO"
e72031
+END LC_MONETARY
e72031
+
e72031
+LC_NUMERIC
e72031
+copy "nb_NO"
e72031
+END LC_NUMERIC
e72031
+
e72031
+LC_TIME
e72031
+copy "nb_NO"
e72031
+END LC_TIME
e72031
+
e72031
+LC_MESSAGES
e72031
+copy "nb_NO"
e72031
+END LC_MESSAGES
e72031
+
e72031
+LC_PAPER
e72031
+copy "nb_NO"
e72031
+END LC_PAPER
e72031
+
e72031
+LC_TELEPHONE
e72031
+copy "nb_NO"
e72031
+END LC_TELEPHONE
e72031
+
e72031
+LC_MEASUREMENT
e72031
+copy "nb_NO"
e72031
+END LC_MEASUREMENT
e72031
+
e72031
+LC_NAME
e72031
+copy "nb_NO"
e72031
+END LC_NAME
e72031
+
e72031
+LC_ADDRESS
e72031
+copy "nb_NO"
e72031
+END LC_ADDRESS
Andreas Schwab 35bf20
--- glibc-2.12.2/localedata/locales/zh_TW
Andreas Schwab 35bf20
+++ /localedata/locales/zh_TW
e72031
@@ -1,7 +1,7 @@
e72031
 comment_char %
e72031
 escape_char /
e72031
 %
e72031
-% Chinese language locale for Taiwan R.O.C.
e72031
+% Chinese language locale for Taiwan
e72031
 % charmap: BIG5-CP950
e72031
 %
e72031
 % Original Author:
e72031
@@ -17,7 +17,7 @@ escape_char /
e72031
 % Reference:	http://wwwold.dkuug.dk/JTC1/SC22/WG20/docs/n690.pdf
e72031
 
e72031
 LC_IDENTIFICATION
e72031
-title      "Chinese locale for Taiwan R.O.C."
e72031
+title      "Chinese locale for Taiwan"
e72031
 source     ""
e72031
 address    ""
e72031
 contact    ""
e72031
@@ -25,7 +25,7 @@ email      "bug-glibc-locales@gnu.org"
e72031
 tel        ""
e72031
 fax        ""
e72031
 language   "Chinese"
e72031
-territory  "Taiwan R.O.C."
e72031
+territory  "Taiwan"
e72031
 revision   "0.2"
e72031
 date       "2000-08-02"
e72031
 %
Andreas Schwab 35bf20
--- glibc-2.12.2/malloc/mcheck.c
Andreas Schwab 35bf20
+++ /malloc/mcheck.c
Andreas Schwab 35bf20
@@ -25,10 +25,26 @@
e72031
 # include <mcheck.h>
e72031
 # include <stdint.h>
e72031
 # include <stdio.h>
e72031
+# include <stdlib.h>
e72031
 # include <libintl.h>
Andreas Schwab 35bf20
 # include <errno.h>
e72031
 #endif
e72031
 
e72031
+#ifdef _LIBC
e72031
+extern __typeof (malloc) __libc_malloc;
e72031
+extern __typeof (free) __libc_free;
e72031
+extern __typeof (realloc) __libc_realloc;
e72031
+libc_hidden_proto (__libc_malloc)
e72031
+libc_hidden_proto (__libc_realloc)
e72031
+libc_hidden_proto (__libc_free)
e72031
+libc_hidden_proto (__libc_memalign)
e72031
+#else
e72031
+# define __libc_malloc(sz) malloc (sz)
e72031
+# define __libc_free(ptr) free (ptr)
e72031
+# define __libc_realloc(ptr, sz) realloc (ptr, sz)
e72031
+# define __libc_memalign(al, sz) memalign (al, sz)
e72031
+#endif
e72031
+
e72031
 /* Old hook values.  */
e72031
 static void (*old_free_hook) (__ptr_t ptr, __const __ptr_t);
e72031
 static __ptr_t (*old_malloc_hook) (__malloc_size_t size, const __ptr_t);
Andreas Schwab 35bf20
@@ -199,7 +215,7 @@ freehook (__ptr_t ptr, const __ptr_t caller)
e72031
   if (old_free_hook != NULL)
e72031
     (*old_free_hook) (ptr, caller);
e72031
   else
e72031
-    free (ptr);
e72031
+    __libc_free (ptr);
e72031
   __free_hook = freehook;
e72031
 }
e72031
 
Andreas Schwab 35bf20
@@ -222,7 +238,7 @@ mallochook (__malloc_size_t size, const __ptr_t caller)
e72031
     hdr = (struct hdr *) (*old_malloc_hook) (sizeof (struct hdr) + size + 1,
e72031
 					     caller);
e72031
   else
e72031
-    hdr = (struct hdr *) malloc (sizeof (struct hdr) + size + 1);
e72031
+    hdr = (struct hdr *) __libc_malloc (sizeof (struct hdr) + size + 1);
e72031
   __malloc_hook = mallochook;
e72031
   if (hdr == NULL)
e72031
     return NULL;
Andreas Schwab 35bf20
@@ -259,7 +275,7 @@ memalignhook (__malloc_size_t alignment, __malloc_size_t size,
e72031
   if (old_memalign_hook != NULL)
e72031
     block = (*old_memalign_hook) (alignment, slop + size + 1, caller);
e72031
   else
e72031
-    block = memalign (alignment, slop + size + 1);
e72031
+    block = __libc_memalign (alignment, slop + size + 1);
e72031
   __memalign_hook = memalignhook;
e72031
   if (block == NULL)
e72031
     return NULL;
Andreas Schwab 35bf20
@@ -320,8 +336,8 @@ reallochook (__ptr_t ptr, __malloc_size_t size, const __ptr_t caller)
e72031
 					      sizeof (struct hdr) + size + 1,
e72031
 					      caller);
e72031
   else
e72031
-    hdr = (struct hdr *) realloc ((__ptr_t) hdr,
e72031
-				  sizeof (struct hdr) + size + 1);
e72031
+    hdr = (struct hdr *) __libc_realloc ((__ptr_t) hdr,
e72031
+					 sizeof (struct hdr) + size + 1);
e72031
   __free_hook = freehook;
e72031
   __malloc_hook = mallochook;
e72031
   __memalign_hook = memalignhook;
Andreas Schwab 35bf20
@@ -381,8 +397,8 @@ mcheck (func)
e72031
   if (__malloc_initialized <= 0 && !mcheck_used)
e72031
     {
e72031
       /* We call malloc() once here to ensure it is initialized.  */
e72031
-      void *p = malloc (0);
e72031
-      free (p);
e72031
+      void *p = __libc_malloc (0);
e72031
+      __libc_free (p);
e72031
 
e72031
       old_free_hook = __free_hook;
e72031
       __free_hook = freehook;
Andreas Schwab 35bf20
--- glibc-2.12.2/manual/libc.texinfo
Andreas Schwab 35bf20
+++ /manual/libc.texinfo
b1f781
@@ -5,7 +5,7 @@
0f388c
 @c setchapternewpage odd
b1f781
 
b1f781
 @comment Tell install-info what to do.
0f388c
-@dircategory Software libraries
b1f781
+@dircategory Libraries
b1f781
 @direntry
b1f781
 * Libc: (libc).                 C library.
b1f781
 @end direntry
Andreas Schwab 35bf20
--- glibc-2.12.2/misc/sys/cdefs.h
Andreas Schwab 35bf20
+++ /misc/sys/cdefs.h
6ab843
@@ -132,7 +132,10 @@
6ab843
 #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
6ab843
 #define __bos0(ptr) __builtin_object_size (ptr, 0)
6ab843
 
6ab843
-#if __GNUC_PREREQ (4,3)
6ab843
+#if __GNUC_PREREQ (4,3) \
6ab843
+    || (defined __GNUC_RH_RELEASE__ && __GNUC__ == 4 \
6ab843
+	&& __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 2 \
6ab843
+	&& __GNUC_RH_RELEASE__ >= 31)
6ab843
 # define __warndecl(name, msg) \
6ab843
   extern void name (void) __attribute__((__warning__ (msg)))
6ab843
 # define __warnattr(msg) __attribute__((__warning__ (msg)))
6ab843
@@ -291,10 +294,16 @@
4c53b1
 
4c53b1
 /* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
4c53b1
    inline semantics, unless -fgnu89-inline is used.  */
4c53b1
-#if !defined __cplusplus || __GNUC_PREREQ (4,3)
4c53b1
+#if !defined __cplusplus || __GNUC_PREREQ (4,3) \
4c53b1
+    || (defined __GNUC_RH_RELEASE__ && __GNUC__ == 4 \
4c53b1
+	&& __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 2 \
6ab843
+	&& __GNUC_RH_RELEASE__ >= 31)
4c53b1
 # if defined __GNUC_STDC_INLINE__ || defined __cplusplus
4c53b1
 #  define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
6ab843
-#  if __GNUC_PREREQ (4,3)
6ab843
+#  if __GNUC_PREREQ (4,3) \
6ab843
+	|| (defined __GNUC_RH_RELEASE__ && __GNUC__ == 4 \
6ab843
+	    && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 2 \
6ab843
+	    && __GNUC_RH_RELEASE__ >= 31)
6ab843
 #   define __extern_always_inline \
6ab843
   extern __always_inline __attribute__ ((__gnu_inline__, __artificial__))
6ab843
 #  else
37921a
@@ -314,7 +323,10 @@
4c53b1
 
4c53b1
 /* GCC 4.3 and above allow passing all anonymous arguments of an
4c53b1
    __extern_always_inline function to some other vararg function.  */
4c53b1
-#if __GNUC_PREREQ (4,3)
4c53b1
+#if __GNUC_PREREQ (4,3) \
4c53b1
+    || (defined __GNUC_RH_RELEASE__ && __GNUC__ == 4 \
4c53b1
+	&& __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 2 \
6ab843
+	&& __GNUC_RH_RELEASE__ >= 31)
4c53b1
 # define __va_arg_pack() __builtin_va_arg_pack ()
4c53b1
 # define __va_arg_pack_len() __builtin_va_arg_pack_len ()
4c53b1
 #endif
Andreas Schwab 35bf20
--- glibc-2.12.2/nis/nss
Andreas Schwab 35bf20
+++ /nis/nss
Andreas Schwab dd550c
@@ -25,7 +25,7 @@
e72031
 #  memory with every getXXent() call.  Otherwise each getXXent() call
e72031
 #  might result into a network communication with the server to get
e72031
 #  the next entry.
e72031
-#SETENT_BATCH_READ=TRUE
e72031
+SETENT_BATCH_READ=TRUE
Andreas Schwab dd550c
 #
Andreas Schwab dd550c
 # ADJUNCT_AS_SHADOW
Andreas Schwab dd550c
 #  If set to TRUE, the passwd routines in the NIS NSS module will not
Andreas Schwab 35bf20
--- glibc-2.12.2/nptl/ChangeLog
Andreas Schwab 35bf20
+++ /nptl/ChangeLog
Andreas Schwab 35bf20
@@ -3938,6 +3938,15 @@
e72031
 	Use __sigfillset.  Document that sigfillset does the right thing wrt
e72031
 	to SIGSETXID.
e72031
 
e72031
+2005-08-08  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* tst-stackguard1.c (do_test): Likewise.
e72031
+
e72031
+2005-07-29  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* tst-stackguard1.c (do_test): Don't fail if the poor man's
e72031
+	randomization doesn't work well enough.
e72031
+
e72031
 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
e72031
 
e72031
 	[BZ #1102]
Andreas Schwab 35bf20
@@ -4674,6 +4683,11 @@
e72031
 	Move definition inside libpthread, libc, librt check.  Provide
e72031
 	definition for rtld.
e72031
 
e72031
+2004-09-02  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* pthread_cond_destroy.c (__pthread_cond_destroy): If there are
e72031
+	waiters, awake all waiters on the associated mutex.
e72031
+
e72031
 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
e72031
 
e72031
 	* sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp.
Andreas Schwab 35bf20
@@ -6748,6 +6762,11 @@
e72031
 
e72031
 	* Makefile [$(build-shared) = yes] (tests): Depend on $(test-modules).
e72031
 
e72031
+2003-07-22  Jakub Jelinek  <jakub@redhat.com>
e72031
+
e72031
+	* descr.h: Don't include lowlevellock.h, pthreaddef.h and dl-sysdep.h
e72031
+	if __need_struct_pthread_size, instead define lll_lock_t.
e72031
+
e72031
 2003-07-25  Jakub Jelinek  <jakub@redhat.com>
e72031
 
e72031
 	* tst-cancel17.c (do_test): Check if aio_cancel failed.
Andreas Schwab 35bf20
--- glibc-2.12.2/nptl/Makefile
Andreas Schwab 35bf20
+++ /nptl/Makefile
Andreas Schwab 35bf20
@@ -342,7 +342,8 @@ endif
b45468
 extra-objs += $(crti-objs) $(crtn-objs)
b45468
 omit-deps += crti crtn
b45468
 
b45468
-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
b45468
+CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time) \
b45468
+		       -fno-asynchronous-unwind-tables
b45468
 endif
b45468
 
b45468
 CFLAGS-flockfile.c = -D_IO_MTSAFE_IO
Andreas Schwab 35bf20
@@ -529,15 +530,19 @@ $(addprefix $(objpfx), \
e72031
     $(tests) $(xtests) $(test-srcs))): $(objpfx)libpthread.so \
e72031
 				       $(objpfx)libpthread_nonshared.a
e72031
 $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so
e72031
-# $(objpfx)../libc.so is used instead of $(common-objpfx)libc.so,
e72031
+# $(objpfx)linklibc.so is used instead of $(common-objpfx)libc.so,
e72031
 # since otherwise libpthread.so comes before libc.so when linking.
e72031
 $(addprefix $(objpfx), $(tests-reverse)): \
e72031
-  $(objpfx)../libc.so $(objpfx)libpthread.so \
e72031
+  $(objpfx)linklibc.so $(objpfx)libpthread.so \
e72031
   $(objpfx)libpthread_nonshared.a
e72031
 $(objpfx)../libc.so: $(common-objpfx)libc.so ;
e72031
 $(addprefix $(objpfx),$(tests-static) $(xtests-static)): $(objpfx)libpthread.a
e72031
 
e72031
 $(objpfx)tst-atfork2.out: $(objpfx)tst-atfork2mod.so
e72031
+
e72031
+$(objpfx)linklibc.so: $(common-objpfx)libc.so
e72031
+	ln -s ../libc.so $@
e72031
+generated += libclink.so
e72031
 else
e72031
 $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
e72031
 endif
Andreas Schwab 35bf20
--- glibc-2.12.2/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
Andreas Schwab 35bf20
+++ /nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
Andreas Schwab 677ba7
@@ -189,4 +189,7 @@
Andreas Schwab 237bb9
 /* Typed memory objects are not available.  */
Andreas Schwab 237bb9
 #define _POSIX_TYPED_MEMORY_OBJECTS	-1
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
+/* Streams are not available.  */
Andreas Schwab 237bb9
+#define _XOPEN_STREAMS	-1
Andreas Schwab 237bb9
+
Andreas Schwab 237bb9
 #endif /* bits/posix_opt.h */
Andreas Schwab 35bf20
--- glibc-2.12.2/nptl/sysdeps/unix/sysv/linux/kernel-features.h
Andreas Schwab 35bf20
+++ /nptl/sysdeps/unix/sysv/linux/kernel-features.h
Andreas Schwab 237bb9
@@ -0,0 +1,6 @@
Andreas Schwab 237bb9
+#include_next <kernel-features.h>
Andreas Schwab 237bb9
+
Andreas Schwab 237bb9
+/* NPTL can always assume all clone thread flags work.  */
Andreas Schwab 237bb9
+#ifndef __ASSUME_CLONE_THREAD_FLAGS
Andreas Schwab 237bb9
+# define __ASSUME_CLONE_THREAD_FLAGS	1
Andreas Schwab 237bb9
+#endif
Andreas Schwab 35bf20
--- glibc-2.12.2/nptl/tst-stackguard1.c
Andreas Schwab 35bf20
+++ /nptl/tst-stackguard1.c
e72031
@@ -190,17 +190,21 @@ do_test (void)
e72031
      the 16 runs, something is very wrong.  */
e72031
   int ndifferences = 0;
e72031
   int ndefaults = 0;
e72031
+  int npartlyrandomized = 0;
e72031
   for (i = 0; i < N; ++i) 
e72031
     {
e72031
       if (child_stack_chk_guards[i] != child_stack_chk_guards[i+1])
e72031
 	ndifferences++;
e72031
       else if (child_stack_chk_guards[i] == default_guard)
e72031
 	ndefaults++;
e72031
+      else if (*(char *) &child_stack_chk_guards[i] == 0)
e72031
+	npartlyrandomized++;
e72031
     }
e72031
 
e72031
-  printf ("differences %d defaults %d\n", ndifferences, ndefaults);
e72031
+  printf ("differences %d defaults %d partly randomized %d\n",
e72031
+	  ndifferences, ndefaults, npartlyrandomized);
e72031
 
e72031
-  if (ndifferences < N / 2 && ndefaults < N / 2)
e72031
+  if ((ndifferences + ndefaults + npartlyrandomized) < 3 * N / 4)
e72031
     {
e72031
       puts ("stack guard canaries are not randomized enough");
e72031
       puts ("nor equal to the default canary value");
Andreas Schwab 35bf20
--- glibc-2.12.2/nscd/nscd.conf
Andreas Schwab 35bf20
+++ /nscd/nscd.conf
aaaf28
@@ -33,7 +33,7 @@
e72031
 #	logfile			/var/log/nscd.log
aaaf28
 #	threads			4
aaaf28
 #	max-threads		32
e72031
-#	server-user		nobody
e72031
+	server-user		nscd
aaaf28
 #	stat-user		somebody
e72031
 	debug-level		0
e72031
 #	reload-count		5
Andreas Schwab 35bf20
--- glibc-2.12.2/nscd/nscd.init
Andreas Schwab 35bf20
+++ /nscd/nscd.init
e72031
@@ -9,6 +9,7 @@
e72031
 #		slow naming services like NIS, NIS+, LDAP, or hesiod.
e72031
 # processname: /usr/sbin/nscd
e72031
 # config: /etc/nscd.conf
e72031
+# config: /etc/sysconfig/nscd
e72031
 #
e72031
 ### BEGIN INIT INFO
e72031
 # Provides: nscd
e72031
@@ -28,20 +29,8 @@
e72031
 # Source function library.
e72031
 . /etc/init.d/functions
e72031
 
e72031
-# nscd does not run on any kernel lower than 2.2.0 because of threading
e72031
-# problems, so we require that in first place.
e72031
-case $(uname -r) in
e72031
-    2.[2-9].*)
e72031
-	# this is okay
e72031
-	;;
e72031
-    [3-9]*)
e72031
-	# these are of course also okay
e72031
-	;;
e72031
-    *)
e72031
-	#this is not
e72031
-	exit 1
e72031
-	;;
e72031
-esac
e72031
+# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
e72031
+[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd
e72031
 
e72031
 RETVAL=0
e72031
 prog=nscd
479a88
@@ -50,7 +39,7 @@ start () {
479a88
     [ -d /var/run/nscd ] || mkdir /var/run/nscd
479a88
     [ -d /var/db/nscd ] || mkdir /var/db/nscd
e72031
     echo -n $"Starting $prog: "
479a88
-    daemon /usr/sbin/nscd
479a88
+    daemon /usr/sbin/nscd $NSCD_OPTIONS
e72031
     RETVAL=$?
e72031
     echo
e72031
     [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
Andreas Schwab 571164
@@ -83,11 +72,11 @@ restart() {
Andreas Schwab 26aeed
 # See how we were called.
Andreas Schwab 26aeed
 case "$1" in
Andreas Schwab 26aeed
     start)
Andreas Schwab 26aeed
-	start
Andreas Schwab 26aeed
+	[ -e /var/lock/subsys/nscd ] || start
Andreas Schwab 26aeed
 	RETVAL=$?
Andreas Schwab 26aeed
 	;;
Andreas Schwab 26aeed
     stop)
Andreas Schwab 571164
-	stop
Andreas Schwab 571164
+	[ ! -e /var/lock/subsys/nscd ] || stop
Andreas Schwab 571164
 	RETVAL=$?
Andreas Schwab 571164
 	;;
Andreas Schwab 571164
     status)
Andreas Schwab 26aeed
@@ -99,14 +88,17 @@ case "$1" in
Andreas Schwab 26aeed
 	RETVAL=$?
Andreas Schwab 26aeed
 	;;
Andreas Schwab 26aeed
     try-restart | condrestart)
Andreas Schwab 26aeed
-	[ -e /var/lock/subsys/nscd ] && restart
Andreas Schwab 26aeed
+	[ ! -e /var/lock/subsys/nscd ] || restart
Andreas Schwab 26aeed
 	RETVAL=$?
aaaf28
 	;;
aaaf28
     force-reload | reload)
aaaf28
     	echo -n $"Reloading $prog: "
aaaf28
-	killproc /usr/sbin/nscd -HUP
aaaf28
-	RETVAL=$?
aaaf28
-	echo
aaaf28
+    	RETVAL=0
aaaf28
+    	/usr/sbin/nscd -i passwd || RETVAL=$?
aaaf28
+    	/usr/sbin/nscd -i group || RETVAL=$?
aaaf28
+    	/usr/sbin/nscd -i hosts || RETVAL=$?
aaaf28
+    	/usr/sbin/nscd -i services || RETVAL=$?
aaaf28
+    	echo
aaaf28
 	;;
aaaf28
     *)
aaaf28
 	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
Andreas Schwab 35bf20
--- glibc-2.12.2/posix/Makefile
Andreas Schwab 35bf20
+++ /posix/Makefile
Andreas Schwab 35bf20
@@ -317,15 +317,8 @@ $(inst_libexecdir)/getconf: $(inst_bindir)/getconf \
12ebbc
 	  mv -f $@/$$spec.new $@/$$spec; \
12ebbc
 	done < $(objpfx)getconf.speclist
12ebbc
 
12ebbc
-$(objpfx)getconf.speclist: $(objpfx)getconf
4c53b1
-ifeq (no,$(cross-compiling))
12ebbc
-	LC_ALL=C GETCONF_DIR=/dev/null \
65bf1c
-	$(run-program-prefix) $< _POSIX_V7_WIDTH_RESTRICTED_ENVS > $@.new
65bf1c
-	LC_ALL=C GETCONF_DIR=/dev/null \
65bf1c
-	$(run-program-prefix) $< _POSIX_V6_WIDTH_RESTRICTED_ENVS >> $@.new
65bf1c
-	LC_ALL=C GETCONF_DIR=/dev/null \
65bf1c
-	$(run-program-prefix) $< _XBS5_WIDTH_RESTRICTED_ENVS >> $@.new
4c53b1
-else
4c53b1
-	> $@.new
4c53b1
-endif
e72031
+$(objpfx)getconf.speclist: getconf.speclist.h
e72031
+	$(CC) -E $(CFLAGS) $(CPPFLAGS) $< \
65bf1c
+	  | sed -n -e '/START_OF_STRINGS/,$${/\(POSIX_V[67]\|_XBS5\)_/{s/^[^"]*"//;s/".*$$//;p}}' \
e72031
+	  > $@.new
e0b449
 	mv -f $@.new $@
Andreas Schwab 35bf20
--- glibc-2.12.2/posix/gai.conf
Andreas Schwab 35bf20
+++ /posix/gai.conf
Andreas Schwab aa2ceb
@@ -41,7 +41,7 @@
Andreas Schwab aa2ceb
 #
Andreas Schwab aa2ceb
 # precedence  <mask>   <value>
Andreas Schwab aa2ceb
 #    Add another rule to the RFC 3484 precedence table.  See section 2.1
Andreas Schwab aa2ceb
-#    and 10.3 in RFC 3484.  The default is:
Andreas Schwab aa2ceb
+#    and 10.3 in RFC 3484.  The RFC requires:
Andreas Schwab aa2ceb
 #
Andreas Schwab aa2ceb
 #precedence  ::1/128       50
Andreas Schwab aa2ceb
 #precedence  ::/0          40
Andreas Schwab aa2ceb
@@ -58,7 +58,7 @@
Andreas Schwab aa2ceb
 #    Add another rule to the RFC 3484 scope table for IPv4 addresses.
Andreas Schwab aa2ceb
 #    By default the scope IDs described in section 3.2 in RFC 3484 are
Andreas Schwab aa2ceb
 #    used.  Changing these defaults should hardly ever be necessary.
Andreas Schwab aa2ceb
-#    The defaults are equivalent to:
Andreas Schwab aa2ceb
+#    The definitions in RFC 1918 are equivalent to:
Andreas Schwab aa2ceb
 #
Andreas Schwab aa2ceb
 #scopev4 ::ffff:169.254.0.0/112  2
Andreas Schwab aa2ceb
 #scopev4 ::ffff:127.0.0.0/104    2
Andreas Schwab aa2ceb
@@ -75,3 +75,5 @@
Andreas Schwab aa2ceb
 #scopev4 ::ffff:169.254.0.0/112  2
Andreas Schwab aa2ceb
 #scopev4 ::ffff:127.0.0.0/104    2
Andreas Schwab aa2ceb
 #scopev4 ::ffff:0.0.0.0/96       14
Andreas Schwab aa2ceb
+#
Andreas Schwab aa2ceb
+#    This is what the Red Hat setting currently uses.
Andreas Schwab 35bf20
--- glibc-2.12.2/posix/getconf.speclist.h
Andreas Schwab 35bf20
+++ /posix/getconf.speclist.h
65bf1c
@@ -0,0 +1,39 @@
e72031
+#include <unistd.h>
e72031
+const char *START_OF_STRINGS =
65bf1c
+#if _POSIX_V7_ILP32_OFF32 == 1
65bf1c
+"POSIX_V7_ILP32_OFF32"
65bf1c
+#endif
65bf1c
+#if _POSIX_V7_ILP32_OFFBIG == 1
65bf1c
+"POSIX_V7_ILP32_OFFBIG"
65bf1c
+#endif
65bf1c
+#if _POSIX_V7_LP64_OFF64 == 1
65bf1c
+"POSIX_V7_LP64_OFF64"
65bf1c
+#endif
65bf1c
+#if _POSIX_V7_LPBIG_OFFBIG == 1
65bf1c
+"POSIX_V7_LPBIG_OFFBIG"
65bf1c
+#endif
e72031
+#if _POSIX_V6_ILP32_OFF32 == 1
e72031
+"POSIX_V6_ILP32_OFF32"
e72031
+#endif
e72031
+#if _POSIX_V6_ILP32_OFFBIG == 1
e72031
+"POSIX_V6_ILP32_OFFBIG"
e72031
+#endif
e72031
+#if _POSIX_V6_LP64_OFF64 == 1
e72031
+"POSIX_V6_LP64_OFF64"
e72031
+#endif
e72031
+#if _POSIX_V6_LPBIG_OFFBIG == 1
e72031
+"POSIX_V6_LPBIG_OFFBIG"
e72031
+#endif
65bf1c
+#if _XBS5_ILP32_OFF32 == 1
65bf1c
+"XBS5_ILP32_OFF32"
65bf1c
+#endif
65bf1c
+#if _XBS5_ILP32_OFFBIG == 1
65bf1c
+"XBS5_ILP32_OFFBIG"
65bf1c
+#endif
65bf1c
+#if _XBS5_LP64_OFF64 == 1
65bf1c
+"XBS5_LP64_OFF64"
65bf1c
+#endif
65bf1c
+#if _XBS5_LPBIG_OFFBIG == 1
65bf1c
+"XBS5_LPBIG_OFFBIG"
65bf1c
+#endif
e72031
+"";
Andreas Schwab 35bf20
--- glibc-2.12.2/streams/Makefile
Andreas Schwab 35bf20
+++ /streams/Makefile
e8c0bf
@@ -21,7 +21,7 @@
e8c0bf
 #
e8c0bf
 subdir	:= streams
e8c0bf
 
e8c0bf
-headers		= stropts.h sys/stropts.h bits/stropts.h bits/xtitypes.h
e8c0bf
+#headers		= stropts.h sys/stropts.h bits/stropts.h bits/xtitypes.h
e8c0bf
 routines	= isastream getmsg getpmsg putmsg putpmsg fattach fdetach
e8c0bf
 
e8c0bf
 include ../Rules
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/generic/dl-cache.h
Andreas Schwab 35bf20
+++ /sysdeps/generic/dl-cache.h
e72031
@@ -36,6 +36,14 @@
e72031
 # define add_system_dir(dir) add_dir (dir)
e72031
 #endif
e72031
 
e72031
+#ifndef arch_startup
e72031
+# define arch_startup(argc, argv) do { } while (0)
e72031
+#endif
e72031
+
e72031
+#ifndef add_arch_dirs
e72031
+# define add_arch_dirs(config_file) do { } while (0)
e72031
+#endif
e72031
+
e72031
 #define CACHEMAGIC "ld.so-1.7.0"
e72031
 
e72031
 /* libc5 and glibc 2.0/2.1 use the same format.  For glibc 2.2 another
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/i386/Makefile
Andreas Schwab 35bf20
+++ /sysdeps/i386/Makefile
Andreas Schwab 622760
@@ -2,6 +2,8 @@
Andreas Schwab 622760
 # Every i386 port in use uses gas syntax (I think).
Andreas Schwab 622760
 asm-CPPFLAGS += -DGAS_SYNTAX
Andreas Schwab 622760
 
Andreas Schwab 622760
+sysdep-ASFLAGS += -U__i686
Andreas Schwab 622760
+
Andreas Schwab 622760
 # The i386 `long double' is a distinct type we support.
Andreas Schwab 622760
 long-double-fcts = yes
Andreas Schwab 622760
 
Andreas Schwab 622760
@@ -64,6 +66,14 @@ endif
e72031
 
e72031
 ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
e72031
 defines += -DNO_TLS_DIRECT_SEG_REFS
e72031
+else
e72031
+# .a libraries are not performance critical and so we
e72031
+# build them without direct TLS segment references
e72031
+# always.
e72031
+CPPFLAGS-.o += -DNO_TLS_DIRECT_SEG_REFS
e72031
+CFLAGS-.o += -mno-tls-direct-seg-refs
e72031
+CPPFLAGS-.oS += -DNO_TLS_DIRECT_SEG_REFS
e72031
+CFLAGS-.oS += -mno-tls-direct-seg-refs
e72031
 endif
0cfc9d
 
0cfc9d
 ifeq ($(subdir),elf)
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/i386/i686/Makefile
Andreas Schwab 35bf20
+++ /sysdeps/i386/i686/Makefile
Andreas Schwab 6a369e
@@ -9,19 +9,3 @@ stack-align-test-flags += -msse
Andreas Schwab 6a369e
 ifeq ($(subdir),string)
Andreas Schwab 6a369e
 sysdep_routines += cacheinfo
Andreas Schwab 6a369e
 endif
Andreas Schwab 6a369e
-
Andreas Schwab 6a369e
-ifeq (yes,$(config-asflags-i686))
Andreas Schwab 6a369e
-CFLAGS-.o += -Wa,-mtune=i686
Andreas Schwab 6a369e
-CFLAGS-.os += -Wa,-mtune=i686
Andreas Schwab 6a369e
-CFLAGS-.op += -Wa,-mtune=i686
Andreas Schwab 6a369e
-CFLAGS-.og += -Wa,-mtune=i686
Andreas Schwab 6a369e
-CFLAGS-.ob += -Wa,-mtune=i686
Andreas Schwab 6a369e
-CFLAGS-.oS += -Wa,-mtune=i686
Andreas Schwab 6a369e
-
Andreas Schwab 6a369e
-ASFLAGS-.o += -Wa,-mtune=i686
Andreas Schwab 6a369e
-ASFLAGS-.os += -Wa,-mtune=i686
Andreas Schwab 6a369e
-ASFLAGS-.op += -Wa,-mtune=i686
Andreas Schwab 6a369e
-ASFLAGS-.og += -Wa,-mtune=i686
Andreas Schwab 6a369e
-ASFLAGS-.ob += -Wa,-mtune=i686
Andreas Schwab 6a369e
-ASFLAGS-.oS += -Wa,-mtune=i686
Andreas Schwab 6a369e
-endif
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/ia64/Makefile
Andreas Schwab 35bf20
+++ /sysdeps/ia64/Makefile
Andreas Schwab c1875b
@@ -12,8 +12,8 @@ elide-routines.os += hp-timing
Andreas Schwab c1875b
 
Andreas Schwab c1875b
 ifeq (yes,$(build-shared))
Andreas Schwab c1875b
 # Compatibility
Andreas Schwab c1875b
-sysdep_routines += ia64libgcc
Andreas Schwab c1875b
-shared-only-routines += ia64libgcc
Andreas Schwab c1875b
+sysdep_routines += libgcc-compat
Andreas Schwab c1875b
+shared-only-routines += libgcc-compat
Andreas Schwab c1875b
 endif
Andreas Schwab c1875b
 endif
Andreas Schwab c1875b
 
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/ia64/ia64libgcc.S
Andreas Schwab 35bf20
+++ /sysdeps/ia64/ia64libgcc.S
Andreas Schwab c1875b
@@ -1,350 +0,0 @@
Andreas Schwab c1875b
-/* From the Intel IA-64 Optimization Guide, choose the minimum latency
Andreas Schwab c1875b
-   alternative.  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-#include <sysdep.h>
Andreas Schwab c1875b
-#undef ret
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-#include <shlib-compat.h>
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-#if SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_2_6)
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-/* __divtf3
Andreas Schwab c1875b
-   Compute a 80-bit IEEE double-extended quotient.
Andreas Schwab c1875b
-   farg0 holds the dividend.  farg1 holds the divisor.  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-ENTRY(___divtf3)
Andreas Schwab c1875b
-	cmp.eq p7, p0 = r0, r0
Andreas Schwab c1875b
-	frcpa.s0 f10, p6 = farg0, farg1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	cmp.ne p7, p0 = r0, r0
Andreas Schwab c1875b
-	.pred.rel.mutex p6, p7
Andreas Schwab c1875b
-(p6)	fnma.s1 f11 = farg1, f10, f1
Andreas Schwab c1875b
-(p6)	fma.s1 f12 = farg0, f10, f0
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f13 = f11, f11, f0
Andreas Schwab c1875b
-(p6)	fma.s1 f14 = f11, f11, f11
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f13, f13, f11
Andreas Schwab c1875b
-(p6)	fma.s1 f13 = f14, f10, f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f13, f11, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f11 = farg1, f12, farg0
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f11, f10, f12
Andreas Schwab c1875b
-(p6)	fnma.s1 f12 = farg1, f10, f1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f12, f10, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f12 = farg1, f11, farg0
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s0 fret0 = f12, f10, f11
Andreas Schwab c1875b
-(p7)	mov fret0 = f10
Andreas Schwab c1875b
-	br.ret.sptk rp
Andreas Schwab c1875b
-END(___divtf3)
Andreas Schwab c1875b
-	.symver ___divtf3, __divtf3@GLIBC_2.2
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-/* __divdf3
Andreas Schwab c1875b
-   Compute a 64-bit IEEE double quotient.
Andreas Schwab c1875b
-   farg0 holds the dividend.  farg1 holds the divisor.  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-ENTRY(___divdf3)
Andreas Schwab c1875b
-	cmp.eq p7, p0 = r0, r0
Andreas Schwab c1875b
-	frcpa.s0 f10, p6 = farg0, farg1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	cmp.ne p7, p0 = r0, r0
Andreas Schwab c1875b
-	.pred.rel.mutex p6, p7
Andreas Schwab c1875b
-(p6)	fmpy.s1 f11 = farg0, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f12 = farg1, f10, f1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f12, f11, f11
Andreas Schwab c1875b
-(p6)	fmpy.s1 f13 = f12, f12
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f12, f10, f10
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f13, f11, f11
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fmpy.s1 f12 = f13, f13
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f13, f10, f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.d.s1 f11 = f12, f11, f11
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f12, f10, f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fnma.d.s1 f8 = farg1, f11, farg0
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.d fret0 = f8, f10, f11
Andreas Schwab c1875b
-(p7)	mov fret0 = f10
Andreas Schwab c1875b
-	br.ret.sptk rp
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-END(___divdf3)
Andreas Schwab c1875b
-	.symver	___divdf3, __divdf3@GLIBC_2.2
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-/* __divsf3
Andreas Schwab c1875b
-   Compute a 32-bit IEEE float quotient.
Andreas Schwab c1875b
-   farg0 holds the dividend.  farg1 holds the divisor.  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-ENTRY(___divsf3)
Andreas Schwab c1875b
-	cmp.eq p7, p0 = r0, r0
Andreas Schwab c1875b
-	frcpa.s0 f10, p6 = farg0, farg1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	cmp.ne p7, p0 = r0, r0
Andreas Schwab c1875b
-	.pred.rel.mutex p6, p7
Andreas Schwab c1875b
-(p6)	fmpy.s1 f8 = farg0, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f9 = farg1, f10, f1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f8 = f9, f8, f8
Andreas Schwab c1875b
-(p6)	fmpy.s1 f9 = f9, f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f8 = f9, f8, f8
Andreas Schwab c1875b
-(p6)	fmpy.s1 f9 = f9, f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.d.s1 f10 = f9, f8, f8
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fnorm.s.s0 fret0 = f10
Andreas Schwab c1875b
-(p7)	mov fret0 = f10
Andreas Schwab c1875b
-	br.ret.sptk rp
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-END(___divsf3)
Andreas Schwab c1875b
-	.symver	___divsf3, __divsf3@GLIBC_2.2
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-/* __divdi3
Andreas Schwab c1875b
-   Compute a 64-bit integer quotient.
Andreas Schwab c1875b
-   in0 holds the dividend.  in1 holds the divisor.  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-ENTRY(___divdi3)
Andreas Schwab c1875b
-	.regstk 2,0,0,0
Andreas Schwab c1875b
-	/* Transfer inputs to FP registers.  */
Andreas Schwab c1875b
-	setf.sig f8 = in0
Andreas Schwab c1875b
-	setf.sig f9 = in1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Convert the inputs to FP, so that they won't be treated as
Andreas Schwab c1875b
-	   unsigned.  */
Andreas Schwab c1875b
-	fcvt.xf f8 = f8
Andreas Schwab c1875b
-	fcvt.xf f9 = f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Compute the reciprocal approximation.  */
Andreas Schwab c1875b
-	frcpa.s1 f10, p6 = f8, f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* 3 Newton-Raphson iterations.  */
Andreas Schwab c1875b
-(p6)	fnma.s1 f11 = f9, f10, f1
Andreas Schwab c1875b
-(p6)	fmpy.s1 f12 = f8, f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fmpy.s1 f13 = f11, f11
Andreas Schwab c1875b
-(p6)	fma.s1 f12 = f11, f12, f12
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f11, f10, f10
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f13, f12, f12
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f13, f10, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f12 = f9, f11, f8
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f12, f10, f11
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Round quotient to an integer.  */
Andreas Schwab c1875b
-	fcvt.fx.trunc.s1 f10 = f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Transfer result to GP registers.  */
Andreas Schwab c1875b
-	getf.sig ret0 = f10
Andreas Schwab c1875b
-	br.ret.sptk rp
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-END(___divdi3)
Andreas Schwab c1875b
-	.symver	___divdi3, __divdi3@GLIBC_2.2
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-/* __moddi3
Andreas Schwab c1875b
-   Compute a 64-bit integer modulus.
Andreas Schwab c1875b
-   in0 holds the dividend (a).  in1 holds the divisor (b).  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-ENTRY(___moddi3)
Andreas Schwab c1875b
-	.regstk 2,0,0,0
Andreas Schwab c1875b
-	/* Transfer inputs to FP registers.  */
Andreas Schwab c1875b
-	setf.sig f14 = in0
Andreas Schwab c1875b
-	setf.sig f9 = in1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Convert the inputs to FP, so that they won't be treated as
Andreas Schwab c1875b
-	   unsigned.  */
Andreas Schwab c1875b
-	fcvt.xf f8 = f14
Andreas Schwab c1875b
-	fcvt.xf f9 = f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Compute the reciprocal approximation.  */
Andreas Schwab c1875b
-	frcpa.s1 f10, p6 = f8, f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* 3 Newton-Raphson iterations.  */
Andreas Schwab c1875b
-(p6)	fmpy.s1 f12 = f8, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f11 = f9, f10, f1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f12 = f11, f12, f12
Andreas Schwab c1875b
-(p6)	fmpy.s1 f13 = f11, f11
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f11, f10, f10
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f13, f12, f12
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	sub in1 = r0, in1
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f13, f10, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f12 = f9, f11, f8
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	setf.sig f9 = in1
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f12, f10, f11
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	fcvt.fx.trunc.s1 f10 = f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* r = q * (-b) + a  */
Andreas Schwab c1875b
-	xma.l f10 = f10, f9, f14
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Transfer result to GP registers.  */
Andreas Schwab c1875b
-	getf.sig ret0 = f10
Andreas Schwab c1875b
-	br.ret.sptk rp
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-END(___moddi3)
Andreas Schwab c1875b
-	.symver ___moddi3, __moddi3@GLIBC_2.2
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-/* __udivdi3
Andreas Schwab c1875b
-   Compute a 64-bit unsigned integer quotient.
Andreas Schwab c1875b
-   in0 holds the dividend.  in1 holds the divisor.  */
Andreas Schwab c1875b
-
Andreas Schwab c1875b
-ENTRY(___udivdi3)
Andreas Schwab c1875b
-	.regstk 2,0,0,0
Andreas Schwab c1875b
-	/* Transfer inputs to FP registers.  */
Andreas Schwab c1875b
-	setf.sig f8 = in0
Andreas Schwab c1875b
-	setf.sig f9 = in1
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Convert the inputs to FP, to avoid FP software-assist faults.  */
Andreas Schwab c1875b
-	fcvt.xuf.s1 f8 = f8
Andreas Schwab c1875b
-	fcvt.xuf.s1 f9 = f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* Compute the reciprocal approximation.  */
Andreas Schwab c1875b
-	frcpa.s1 f10, p6 = f8, f9
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-	/* 3 Newton-Raphson iterations.  */
Andreas Schwab c1875b
-(p6)	fnma.s1 f11 = f9, f10, f1
Andreas Schwab c1875b
-(p6)	fmpy.s1 f12 = f8, f10
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fmpy.s1 f13 = f11, f11
Andreas Schwab c1875b
-(p6)	fma.s1 f12 = f11, f12, f12
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f11, f10, f10
Andreas Schwab c1875b
-(p6)	fma.s1 f11 = f13, f12, f12
Andreas Schwab c1875b
-	;;
Andreas Schwab c1875b
-(p6)	fma.s1 f10 = f13, f10, f10
Andreas Schwab c1875b
-(p6)	fnma.s1 f12 = f9, f11, f8
Andreas Schwab c1875b
-	;;
e72031
-(p6)	fma.s1 f10 = f12, f10, f11
e72031
-	;;
e72031
-	/* Round quotient to an unsigned integer.  */
e72031
-	fcvt.fxu.trunc.s1 f10 = f10
e72031
-	;;
e72031
-	/* Transfer result to GP registers.  */
e72031
-	getf.sig ret0 = f10
e72031
-	br.ret.sptk rp
e72031
-	;;
e72031
-END(___udivdi3)
e72031
-	.symver	___udivdi3, __udivdi3@GLIBC_2.2
e72031
-
e72031
-/* __umoddi3
e72031
-   Compute a 64-bit unsigned integer modulus.
e72031
-   in0 holds the dividend (a).  in1 holds the divisor (b).  */
e72031
-
e72031
-ENTRY(___umoddi3)
e72031
-	.regstk 2,0,0,0
e72031
-	/* Transfer inputs to FP registers.  */
e72031
-	setf.sig f14 = in0
e72031
-	setf.sig f9 = in1
e72031
-	;;
e72031
-	/* Convert the inputs to FP, to avoid FP software assist faults.  */
e72031
-	fcvt.xuf.s1 f8 = f14
e72031
-	fcvt.xuf.s1 f9 = f9
e72031
-	;;
e72031
-	/* Compute the reciprocal approximation.  */
e72031
-	frcpa.s1 f10, p6 = f8, f9
e72031
-	;;
e72031
-	/* 3 Newton-Raphson iterations.  */
e72031
-(p6)	fmpy.s1 f12 = f8, f10
e72031
-(p6)	fnma.s1 f11 = f9, f10, f1
e72031
-	;;
e72031
-(p6)	fma.s1 f12 = f11, f12, f12
e72031
-(p6)	fmpy.s1 f13 = f11, f11
e72031
-	;;
e72031
-(p6)	fma.s1 f10 = f11, f10, f10
e72031
-(p6)	fma.s1 f11 = f13, f12, f12
e72031
-	;;
e72031
-	sub in1 = r0, in1
e72031
-(p6)	fma.s1 f10 = f13, f10, f10
e72031
-(p6)	fnma.s1 f12 = f9, f11, f8
e72031
-	;;
e72031
-	setf.sig f9 = in1
e72031
-(p6)	fma.s1 f10 = f12, f10, f11
e72031
-	;;
e72031
-	/* Round quotient to an unsigned integer.  */
e72031
-	fcvt.fxu.trunc.s1 f10 = f10
e72031
-	;;
e72031
-	/* r = q * (-b) + a  */
e72031
-	xma.l f10 = f10, f9, f14
e72031
-	;;
e72031
-	/* Transfer result to GP registers.  */
e72031
-	getf.sig ret0 = f10
e72031
-	br.ret.sptk rp
e72031
-	;;
e72031
-END(___umoddi3)
e72031
-	.symver	___umoddi3, __umoddi3@GLIBC_2.2
e72031
-
e72031
-/* __multi3
e72031
-   Compute a 128-bit multiply of 128-bit multiplicands.
e72031
-   in0/in1 holds one multiplicand (a), in2/in3 holds the other one (b).  */
e72031
-
e72031
-ENTRY(___multi3)
e72031
-	.regstk 4,0,0,0
e72031
-	setf.sig f6 = in1
e72031
-	movl r19 = 0xffffffff
e72031
-	setf.sig f7 = in2
e72031
-	;;
e72031
-	and r14 = r19, in0
e72031
-	;;
e72031
-	setf.sig f10 = r14
e72031
-	and r14 = r19, in2
e72031
-	xmpy.l f9 = f6, f7
e72031
-	;;
e72031
-	setf.sig f6 = r14
e72031
-	shr.u r14 = in0, 32
e72031
-	;;
e72031
-	setf.sig f7 = r14
e72031
-	shr.u r14 = in2, 32
e72031
-	;;
e72031
-	setf.sig f8 = r14
e72031
-	xmpy.l f11 = f10, f6
e72031
-	xmpy.l f6 = f7, f6
e72031
-	;;
e72031
-	getf.sig r16 = f11
e72031
-	xmpy.l f7 = f7, f8
e72031
-	;;
e72031
-	shr.u r14 = r16, 32
e72031
-	and r16 = r19, r16
e72031
-	getf.sig r17 = f6
e72031
-	setf.sig f6 = in0
e72031
-	;;
e72031
-	setf.sig f11 = r14
e72031
-	getf.sig r21 = f7
e72031
-	setf.sig f7 = in3
e72031
-	;;
e72031
-	xma.l f11 = f10, f8, f11
e72031
-	xma.l f6 = f6, f7, f9
e72031
-	;;
e72031
-	getf.sig r18 = f11
e72031
-	;;
e72031
-	add r18 = r18, r17
e72031
-	;;
e72031
-	and r15 = r19, r18
e72031
-	cmp.ltu p7, p6 = r18, r17
e72031
-	;;
e72031
-	getf.sig r22 = f6
e72031
-(p7)	adds r14 = 1, r19
e72031
-	;;
e72031
-(p7)	add r21 = r21, r14
e72031
-	shr.u r14 = r18, 32
e72031
-	shl r15 = r15, 32
e72031
-	;;
e72031
-	add r20 = r21, r14
e72031
-	;;
e72031
-	add ret0 = r15, r16
e72031
-	add ret1 = r22, r20
e72031
-	br.ret.sptk rp
e72031
-	;;
e72031
-END(___multi3)
e72031
-	.symver	___multi3, __multi3@GLIBC_2.2
e72031
-
e72031
-#endif
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/ia64/libgcc-compat.c
Andreas Schwab 35bf20
+++ /sysdeps/ia64/libgcc-compat.c
e72031
@@ -0,0 +1,84 @@
e72031
+/* pre-.hidden libgcc compatibility
e72031
+   Copyright (C) 2002 Free Software Foundation, Inc.
e72031
+   This file is part of the GNU C Library.
e72031
+
e72031
+   The GNU C Library is free software; you can redistribute it and/or
e72031
+   modify it under the terms of the GNU Lesser General Public
e72031
+   License as published by the Free Software Foundation; either
e72031
+   version 2.1 of the License, or (at your option) any later version.
e72031
+
e72031
+   The GNU C Library is distributed in the hope that it will be useful,
e72031
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
e72031
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
e72031
+   Lesser General Public License for more details.
e72031
+
e72031
+   You should have received a copy of the GNU Lesser General Public
e72031
+   License along with the GNU C Library; if not, write to the Free
e72031
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
e72031
+   02111-1307 USA.  */
e72031
+
e72031
+
e72031
+#include <stdint.h>
e72031
+#include <shlib-compat.h>
e72031
+
e72031
+#if SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_2_6)
e72031
+
e72031
+typedef int int128_t __attribute__((__mode__(TI)));
e72031
+
e72031
+extern long double __divtf3 (long double, long double) attribute_hidden;
e72031
+long double INTUSE (__divtf3) (long double x, long double y)
e72031
+{
e72031
+  return __divtf3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__divtf3), __divtf3, GLIBC_2.2);
e72031
+
e72031
+extern double __divdf3 (double, double) attribute_hidden;
e72031
+double INTUSE (__divdf3) (double x, double y)
e72031
+{
e72031
+  return __divdf3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__divdf3), __divdf3, GLIBC_2.2);
e72031
+
e72031
+extern float __divsf3 (float, float) attribute_hidden;
e72031
+float INTUSE (__divsf3) (float x, float y)
e72031
+{
e72031
+  return __divsf3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__divsf3), __divsf3, GLIBC_2.2);
e72031
+
e72031
+extern int64_t __divdi3 (int64_t, int64_t) attribute_hidden;
e72031
+int64_t INTUSE (__divdi3) (int64_t x, int64_t y)
e72031
+{
e72031
+  return __divdi3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__divdi3), __divdi3, GLIBC_2.2);
e72031
+
e72031
+extern int64_t __moddi3 (int64_t, int64_t) attribute_hidden;
e72031
+int64_t INTUSE (__moddi3) (int64_t x, int64_t y)
e72031
+{
e72031
+  return __moddi3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__moddi3), __moddi3, GLIBC_2.2);
e72031
+
e72031
+extern uint64_t __udivdi3 (uint64_t, uint64_t) attribute_hidden;
e72031
+uint64_t INTUSE (__udivdi3) (uint64_t x, uint64_t y)
e72031
+{
e72031
+  return __udivdi3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__udivdi3), __udivdi3, GLIBC_2.2);
e72031
+
e72031
+extern uint64_t __umoddi3 (uint64_t, uint64_t) attribute_hidden;
e72031
+uint64_t INTUSE (__umoddi3) (uint64_t x, uint64_t y)
e72031
+{
e72031
+  return __umoddi3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__umoddi3), __umoddi3, GLIBC_2.2);
e72031
+
e72031
+extern int128_t __multi3 (int128_t, int128_t) attribute_hidden;
e72031
+int128_t INTUSE (__multi3) (int128_t x, int128_t y)
e72031
+{
e72031
+  return __multi3 (x, y);
e72031
+}
e72031
+symbol_version (INTUSE (__multi3), __multi3, GLIBC_2.2);
e72031
+
e72031
+#endif
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/posix/getaddrinfo.c
Andreas Schwab 35bf20
+++ /sysdeps/posix/getaddrinfo.c
Andreas Schwab aa2ceb
@@ -1099,10 +1099,12 @@ static const struct scopeentry
Andreas Schwab aa2ceb
     /* Link-local addresses: scope 2.  */
Andreas Schwab aa2ceb
     { { { 169, 254, 0, 0 } }, htonl_c (0xffff0000), 2 },
Andreas Schwab aa2ceb
     { { { 127, 0, 0, 0 } }, htonl_c (0xff000000), 2 },
Andreas Schwab aa2ceb
+#if 0
Andreas Schwab aa2ceb
     /* Site-local addresses: scope 5.  */
Andreas Schwab aa2ceb
     { { { 10, 0, 0, 0 } }, htonl_c (0xff000000), 5 },
Andreas Schwab aa2ceb
     { { { 172, 16, 0, 0 } }, htonl_c (0xfff00000), 5 },
Andreas Schwab aa2ceb
     { { { 192, 168, 0, 0 } }, htonl_c (0xffff0000), 5 },
Andreas Schwab aa2ceb
+#endif
Andreas Schwab aa2ceb
     /* Default: scope 14.  */
Andreas Schwab aa2ceb
     { { { 0, 0, 0, 0 } }, htonl_c (0x00000000), 14 }
Andreas Schwab aa2ceb
   };
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/powerpc/powerpc64/Makefile
Andreas Schwab 35bf20
+++ /sysdeps/powerpc/powerpc64/Makefile
21860b
@@ -30,6 +30,7 @@ ifneq ($(elf),no)
21860b
 # we use -fpic instead which is much better.
21860b
 CFLAGS-initfini.s += -fpic -O1
21860b
 endif
21860b
+CFLAGS-libc-start.c += -fno-asynchronous-unwind-tables
21860b
 endif
21860b
 
21860b
 ifeq ($(subdir),elf)
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/nice.c
Andreas Schwab 35bf20
+++ /sysdeps/unix/nice.c
e72031
@@ -42,7 +42,12 @@ nice (int incr)
e72031
 	__set_errno (save);
e72031
     }
e72031
 
e72031
-  result = setpriority (PRIO_PROCESS, 0, prio + incr);
e72031
+  prio += incr;
e72031
+  if (prio < PRIO_MIN)
e72031
+    prio = PRIO_MIN;
e72031
+  else if (prio >= PRIO_MAX)
e72031
+    prio = PRIO_MAX - 1;
e72031
+  result = setpriority (PRIO_PROCESS, 0, prio);
e72031
   if (result == -1)
e72031
     {
e72031
       if (errno == EACCES)
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/check_pf.c
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/check_pf.c
9b5c86
@@ -27,13 +27,10 @@
9b5c86
 #include <unistd.h>
9b5c86
 #include <sys/socket.h>
9b5c86
 
9b5c86
-#include <asm/types.h>
9b5c86
-#include <linux/netlink.h>
9b5c86
-#include <linux/rtnetlink.h>
9b5c86
-
9b5c86
 #include <not-cancel.h>
9b5c86
 #include <kernel-features.h>
9b5c86
 
9b5c86
+#include "netlinkaccess.h"
9b5c86
 
aaaf28
 #ifndef IFA_F_HOMEADDRESS
aaaf28
 # define IFA_F_HOMEADDRESS 0
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/dl-osinfo.h
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/dl-osinfo.h
0cfc9d
@@ -17,10 +17,13 @@
87698e
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
e72031
    02111-1307 USA.  */
e72031
 
e72031
+#include <errno.h>
e72031
 #include <kernel-features.h>
e72031
 #include <dl-sysdep.h>
0cfc9d
 #include <fcntl.h>
e72031
 #include <stdint.h>
e72031
+#include <hp-timing.h>
e72031
+#include <endian.h>
e72031
 
e72031
 #ifndef MIN
e72031
 # define MIN(a,b) (((a)<(b))?(a):(b))
Andreas Schwab 571164
@@ -80,6 +83,32 @@ _dl_setup_stack_chk_guard (void *dl_random)
849f6c
       unsigned char *p = (unsigned char *) &ret;
849f6c
       p[sizeof (ret) - 1] = 255;
849f6c
       p[sizeof (ret) - 2] = '\n';
e72031
+#ifdef HP_TIMING_NOW
849f6c
+      hp_timing_t hpt;
849f6c
+      HP_TIMING_NOW (hpt);
849f6c
+      hpt = (hpt & 0xffff) << 8;
849f6c
+      ret ^= hpt;
e72031
+#endif
849f6c
+      uintptr_t stk;
849f6c
+      /* Avoid GCC being too smart.  */
849f6c
+      asm ("" : "=r" (stk) : "r" (p));
849f6c
+      stk &= 0x7ffff0;
e72031
+#if __BYTE_ORDER == __LITTLE_ENDIAN
849f6c
+      stk <<= (__WORDSIZE - 23);
e72031
+#elif __WORDSIZE == 64
849f6c
+      stk <<= 31;
e72031
+#endif
849f6c
+      ret ^= stk;
849f6c
+      /* Avoid GCC being too smart.  */
849f6c
+      p = (unsigned char *) &errno;
849f6c
+      asm ("" : "=r" (stk) : "r" (p));
849f6c
+      stk &= 0x7fff00;
e72031
+#if __BYTE_ORDER == __LITTLE_ENDIAN
849f6c
+      stk <<= (__WORDSIZE - 29);
e72031
+#else
849f6c
+      stk >>= 8;
e72031
+#endif
849f6c
+      ret ^= stk;
849f6c
     }
849f6c
   else
849f6c
 #endif
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/futimesat.c
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/futimesat.c
e72031
@@ -37,14 +37,14 @@ futimesat (fd, file, tvp)
e72031
 {
e72031
   int result;
e72031
 
e72031
+  if (file == NULL)
e72031
+    return __futimes (fd, tvp);
e72031
+
e72031
 #ifdef __NR_futimesat
e72031
 # ifndef __ASSUME_ATFCTS
e72031
   if (__have_atfcts >= 0)
e72031
 # endif
e72031
     {
e72031
-      if (file == NULL)
e72031
-	return __futimes (fd, tvp);
e72031
-
e72031
       result = INLINE_SYSCALL (futimesat, 3, fd, file, tvp);
e72031
 # ifndef __ASSUME_ATFCTS
e72031
       if (result == -1 && errno == ENOSYS)
e72031
@@ -58,22 +58,7 @@ futimesat (fd, file, tvp)
e72031
 #ifndef __ASSUME_ATFCTS
e72031
   char *buf = NULL;
e72031
 
e72031
-  if (file == NULL)
e72031
-    {
e72031
-      static const char procfd[] = "/proc/self/fd/%d";
e72031
-      /* Buffer for the path name we are going to use.  It consists of
e72031
-	 - the string /proc/self/fd/
e72031
-	 - the file descriptor number.
e72031
-	 The final NUL is included in the sizeof.   A bit of overhead
e72031
-	 due to the format elements compensates for possible negative
e72031
-	 numbers.  */
e72031
-      size_t buflen = sizeof (procfd) + sizeof (int) * 3;
e72031
-      buf = alloca (buflen);
e72031
-
e72031
-      __snprintf (buf, buflen, procfd, fd);
e72031
-      file = buf;
e72031
-    }
e72031
-  else if (fd != AT_FDCWD && file[0] != '/')
e72031
+  if (fd != AT_FDCWD && file[0] != '/')
e72031
     {
e72031
       size_t filelen = strlen (file);
Andreas Schwab 6c0e60
       if (__builtin_expect (filelen == 0, 0))
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/i386/dl-cache.h
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/i386/dl-cache.h
e72031
@@ -0,0 +1,59 @@
e72031
+/* Support for reading /etc/ld.so.cache files written by Linux ldconfig.
e72031
+   Copyright (C) 2004 Free Software Foundation, Inc.
e72031
+   This file is part of the GNU C Library.
e72031
+
e72031
+   The GNU C Library is free software; you can redistribute it and/or
e72031
+   modify it under the terms of the GNU Lesser General Public
e72031
+   License as published by the Free Software Foundation; either
e72031
+   version 2.1 of the License, or (at your option) any later version.
e72031
+
e72031
+   The GNU C Library is distributed in the hope that it will be useful,
e72031
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
e72031
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
e72031
+   Lesser General Public License for more details.
e72031
+
e72031
+   You should have received a copy of the GNU Lesser General Public
e72031
+   License along with the GNU C Library; if not, write to the Free
e72031
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
e72031
+   02111-1307 USA.  */
e72031
+
e72031
+static inline int
e72031
+is_ia64 (void)
e72031
+{
e72031
+  unsigned int fl1, fl2;
e72031
+
e72031
+  /* See if we can use cpuid.  */
e72031
+  __asm__ ("pushfl; pushfl; popl %0; movl %0,%1; xorl %2,%0;"
e72031
+           "pushl %0; popfl; pushfl; popl %0; popfl"
e72031
+           : "=&r" (fl1), "=&r" (fl2)
e72031
+           : "i" (0x00200000));
e72031
+  if (((fl1 ^ fl2) & 0x00200000) == 0)
e72031
+    return 0;
e72031
+
e72031
+  /* Host supports cpuid.  See if cpuid gives capabilities, try
e72031
+     CPUID(0).  Preserve %ebx and %ecx; cpuid insn clobbers these, we
e72031
+     don't need their CPUID values here, and %ebx may be the PIC
e72031
+     register.  */
e72031
+  __asm__ ("pushl %%ecx; pushl %%ebx; cpuid; popl %%ebx; popl %%ecx"
e72031
+           : "=a" (fl1) : "0" (0) : "edx", "cc");
e72031
+  if (fl1 == 0)
e72031
+    return 0;
e72031
+
e72031
+  /* Invoke CPUID(1), return %edx; caller can examine bits to
e72031
+     determine what's supported.  */
e72031
+  __asm__ ("pushl %%ecx; pushl %%ebx; cpuid; popl %%ebx; popl %%ecx"
e72031
+           : "=d" (fl2), "=a" (fl1) : "1" (1) : "cc");
e72031
+  return (fl2 & (1 << 30)) != 0;
e72031
+}
e72031
+
e72031
+#define arch_startup(argc, argv) \
e72031
+  do {									\
e72031
+    /* On IA-64, try to execute 64-bit ldconfig if possible.		\
e72031
+       This is because the badly designed /emul/ia32-linux hack		\
e72031
+       will cause 32-bit ldconfig to do all sorts of weird things.  */	\
e72031
+    if (is_ia64 ())							\
e72031
+      execv ("/emul/ia32-linux/../../sbin/ldconfig",			\
e72031
+	     (char *const *) argv);					\
e72031
+  } while (0)
e72031
+
e72031
+#include_next <dl-cache.h>
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/ia64/dl-cache.h
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/ia64/dl-cache.h
e72031
@@ -22,4 +22,31 @@
e72031
 #define _dl_cache_check_flags(flags) \
e72031
   ((flags) == _DL_CACHE_DEFAULT_ID)
e72031
 
e72031
+#define EMUL_HACK "/emul/ia32-linux"
e72031
+
e72031
+#define arch_startup(argc, argv) unlink (EMUL_HACK LD_SO_CACHE)
e72031
+
e72031
+#define add_arch_dirs(config_file) \
e72031
+  do {							\
e72031
+    int save_verbose = opt_verbose;			\
e72031
+    opt_verbose = 0;					\
e72031
+							\
e72031
+    parse_conf (config_file, EMUL_HACK, true);		\
e72031
+							\
e72031
+    /* Always add the standard search paths.  */	\
e72031
+    add_system_dir (EMUL_HACK SLIBDIR);			\
e72031
+    if (strcmp (SLIBDIR, LIBDIR))			\
e72031
+      add_system_dir (EMUL_HACK LIBDIR);		\
e72031
+							\
e72031
+    char emul_config_file[strlen (config_file)		\
e72031
+			  + sizeof EMUL_HACK];		\
e72031
+    strcpy (mempcpy (emul_config_file, EMUL_HACK,	\
e72031
+		     strlen (EMUL_HACK)), config_file);	\
e72031
+							\
e72031
+    if (! access (emul_config_file, R_OK))		\
e72031
+      parse_conf (emul_config_file, EMUL_HACK, true);	\
e72031
+							\
e72031
+    opt_verbose = save_verbose;				\
e72031
+  } while (0)
e72031
+
e72031
 #include_next <dl-cache.h>
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/ia64/dl-procinfo.c
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/ia64/dl-procinfo.c
e72031
@@ -0,0 +1,5 @@
e72031
+#ifdef IS_IN_ldconfig
e72031
+#include <sysdeps/i386/dl-procinfo.c>
e72031
+#else
e72031
+#include <sysdeps/generic/dl-procinfo.c>
e72031
+#endif
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/ia64/dl-procinfo.h
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/ia64/dl-procinfo.h
e72031
@@ -0,0 +1,5 @@
e72031
+#ifdef IS_IN_ldconfig
e72031
+#include <sysdeps/unix/sysv/linux/i386/dl-procinfo.h>
e72031
+#else
e72031
+#include <sysdeps/generic/dl-procinfo.h>
e72031
+#endif
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed
e72031
@@ -1 +1 @@
e72031
-s_^\(RTLDLIST=\)\([^ 	]*\)-ia64\(\.so\.[0-9.]*\)[ 	]*$_\1"\2-ia64\3 \2\3"_
e72031
+s_^\(RTLDLIST=\)\([^ 	]*\)-ia64\(\.so\.[0-9.]*\)[ 	]*$_\1"\2-ia64\3 /emul/ia32-linux\2\3"_
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/netlinkaccess.h
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/netlinkaccess.h
Andreas Schwab 237bb9
@@ -25,6 +25,24 @@
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
 #include <kernel-features.h>
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
+#ifndef IFA_MAX
Andreas Schwab 237bb9
+/* 2.6.19 kernel headers helpfully removed some macros and
Andreas Schwab 237bb9
+   moved lots of stuff into new headers, some of which aren't
Andreas Schwab 237bb9
+   included by linux/rtnetlink.h.  */
Andreas Schwab 237bb9
+#include <linux/if_addr.h>
Andreas Schwab 237bb9
+#endif
Andreas Schwab 237bb9
+
Andreas Schwab 237bb9
+#ifndef IFA_RTA
Andreas Schwab 237bb9
+# define IFA_RTA(r) \
Andreas Schwab 237bb9
+  ((struct rtattr*) ((char*)(r) + NLMSG_ALIGN (sizeof (struct ifaddrmsg))))
Andreas Schwab 237bb9
+# define IFA_PAYLOAD(n) NLMSG_PAYLOAD (n, sizeof (struct ifaddrmsg))
Andreas Schwab 237bb9
+#endif
Andreas Schwab 237bb9
+
Andreas Schwab 237bb9
+#ifndef IFLA_RTA
Andreas Schwab 237bb9
+# define IFLA_RTA(r) \
Andreas Schwab 237bb9
+  ((struct rtattr*) ((char*)(r) + NLMSG_ALIGN (sizeof (struct ifinfomsg))))
Andreas Schwab 237bb9
+# define IFLA_PAYLOAD(n) NLMSG_PAYLOAD (n, sizeof (struct ifinfomsg))
Andreas Schwab 237bb9
+#endif
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
 struct netlink_res
Andreas Schwab 237bb9
 {
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/paths.h
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/paths.h
Andreas Schwab 237bb9
@@ -62,7 +62,7 @@
Andreas Schwab 237bb9
 #define	_PATH_TTY	"/dev/tty"
Andreas Schwab 237bb9
 #define	_PATH_UNIX	"/boot/vmlinux"
Andreas Schwab 237bb9
 #define _PATH_UTMP	"/var/run/utmp"
Andreas Schwab 237bb9
-#define	_PATH_VI	"/usr/bin/vi"
Andreas Schwab 237bb9
+#define	_PATH_VI	"/bin/vi"
Andreas Schwab 237bb9
 #define _PATH_WTMP	"/var/log/wtmp"
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
 /* Provide trailing slash, since mostly used for building pathnames. */
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
Andreas Schwab f3e82c
@@ -1 +1 @@
Andreas Schwab f3e82c
-#include "../../fxstat.c"
Andreas Schwab f3e82c
+#include "../../i386/fxstat.c"
Andreas Schwab 35bf20
--- glibc-2.12.2/sysdeps/unix/sysv/linux/tcsetattr.c
Andreas Schwab 35bf20
+++ /sysdeps/unix/sysv/linux/tcsetattr.c
Andreas Schwab 571164
@@ -49,6 +49,7 @@ tcsetattr (fd, optional_actions, termios_p)
Andreas Schwab 237bb9
 {
Andreas Schwab 237bb9
   struct __kernel_termios k_termios;
Andreas Schwab 237bb9
   unsigned long int cmd;
Andreas Schwab 237bb9
+  int retval;
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
   switch (optional_actions)
Andreas Schwab 237bb9
     {
Andreas Schwab 571164
@@ -80,6 +81,35 @@ tcsetattr (fd, optional_actions, termios_p)
Andreas Schwab 237bb9
   memcpy (&k_termios.c_cc[0], &termios_p->c_cc[0],
Andreas Schwab 237bb9
 	  __KERNEL_NCCS * sizeof (cc_t));
Andreas Schwab 237bb9
 
Andreas Schwab 237bb9
-  return INLINE_SYSCALL (ioctl, 3, fd, cmd, &k_termios);
Andreas Schwab 237bb9
+  retval = INLINE_SYSCALL (ioctl, 3, fd, cmd, &k_termios);
Andreas Schwab 237bb9
+
Andreas Schwab 237bb9
+  if (retval == 0 && cmd == TCSETS)
Andreas Schwab 237bb9
+    {
Andreas Schwab 237bb9
+      /* The Linux kernel has a bug which silently ignore the invalid
Andreas Schwab 237bb9
+        c_cflag on pty. We have to check it here. */
Andreas Schwab 237bb9
+      int save = errno;
Andreas Schwab 237bb9
+      retval = INLINE_SYSCALL (ioctl, 3, fd, TCGETS, &k_termios);
Andreas Schwab 237bb9
+      if (retval)
Andreas Schwab 237bb9
+       {
Andreas Schwab 237bb9
+         /* We cannot verify if the setting is ok. We don't return
Andreas Schwab 237bb9
+            an error (?). */
Andreas Schwab 237bb9
+         __set_errno (save);
Andreas Schwab 237bb9
+         retval = 0;
Andreas Schwab 237bb9
+       }
Andreas Schwab 237bb9
+      else if ((termios_p->c_cflag & (PARENB | CREAD))
Andreas Schwab 237bb9
+              != (k_termios.c_cflag & (PARENB | CREAD))
Andreas Schwab 237bb9
+              || ((termios_p->c_cflag & CSIZE)
Andreas Schwab 237bb9
+                  && ((termios_p->c_cflag & CSIZE)
Andreas Schwab 237bb9
+                      != (k_termios.c_cflag & CSIZE))))
Andreas Schwab 237bb9
+       {
Andreas Schwab 237bb9
+         /* It looks like the Linux kernel silently changed the
Andreas Schwab 237bb9
+            PARENB/CREAD/CSIZE bits in c_cflag. Report it as an
Andreas Schwab 237bb9
+            error. */
Andreas Schwab 237bb9
+         __set_errno (EINVAL);
Andreas Schwab 237bb9
+         retval = -1;
Andreas Schwab 237bb9
+       }
Andreas Schwab 237bb9
+    }
Andreas Schwab 237bb9
+
Andreas Schwab 237bb9
+  return retval;
Andreas Schwab 237bb9
 }
Andreas Schwab 237bb9
 libc_hidden_def (tcsetattr)
Andreas Schwab 35bf20
--- glibc-2.12.2/timezone/zic.c
Andreas Schwab 35bf20
+++ /timezone/zic.c
Andreas Schwab 237bb9
@@ -1921,7 +1921,7 @@ const int			zonecount;
Andreas Schwab 237bb9
 		if (stdrp != NULL && stdrp->r_hiyear == 2037)
Andreas Schwab 237bb9
 			return;
Andreas Schwab 237bb9
 	}
Andreas Schwab 237bb9
-	if (stdrp == NULL && zp->z_nrules != 0)
Andreas Schwab 237bb9
+	if (stdrp == NULL && (zp->z_nrules != 0 || zp->z_stdoff != 0))
Andreas Schwab 237bb9
 		return;
Andreas Schwab 237bb9
 	abbrvar = (stdrp == NULL) ? "" : stdrp->r_abbrvar;
Andreas Schwab 237bb9
 	doabbr(result, zp->z_format, abbrvar, FALSE, TRUE);