[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r18704 - in /fsf/trunk/ports: ./ sysdeps/arm/ sysdeps/unix/sysv/linux/arm/ sysdeps/unix/sysv/linux/ia64/bits/ sysdeps/unix/s...



Author: eglibc
Date: Sat May 26 00:01:58 2012
New Revision: 18704

Log:
Import glibc-ports-mainline for 2012-05-26

Removed:
    fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/chown.c
Modified:
    fsf/trunk/ports/ChangeLog.arm
    fsf/trunk/ports/ChangeLog.ia64
    fsf/trunk/ports/ChangeLog.m68k
    fsf/trunk/ports/ChangeLog.mips
    fsf/trunk/ports/sysdeps/arm/dl-irel.h
    fsf/trunk/ports/sysdeps/arm/dl-machine.h
    fsf/trunk/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h
    fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/bits/mman.h
    fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist
    fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
    fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/syscalls.list
    fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/kernel-features.h

Modified: fsf/trunk/ports/ChangeLog.arm
==============================================================================
--- fsf/trunk/ports/ChangeLog.arm (original)
+++ fsf/trunk/ports/ChangeLog.arm Sat May 26 00:01:58 2012
@@ -1,3 +1,14 @@
+2012-05-25  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/arm/kernel-features.h
+	(__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove.
+
+2012-05-25  Richard Henderson  <rth@xxxxxxxxxxx>
+
+	* sysdeps/arm/dl-irel.h (elf_ifunc_invoke): Pass dl_hwcap.
+	* sysdeps/arm/dl-machine.h (elf_machine_rel): Use elf_ifunc_invoke.
+	(elf_machine_rela): Likewise.
+
 2012-05-23  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_DONTDUMP): Define.

Modified: fsf/trunk/ports/ChangeLog.ia64
==============================================================================
--- fsf/trunk/ports/ChangeLog.ia64 (original)
+++ fsf/trunk/ports/ChangeLog.ia64 Sat May 26 00:01:58 2012
@@ -1,3 +1,12 @@
+2012-05-25  Mike Frysinger  <vapier@xxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Update.
+
+2012-05-24  Mike Frysinger  <vapier@xxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/ia64/bits/mman.h (MADV_DONTDUMP): Define.
+	(MADV_DODUMP): Likewise.
+
 2012-05-23  Mike Frysinger  <vapier@xxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add forward

Modified: fsf/trunk/ports/ChangeLog.m68k
==============================================================================
--- fsf/trunk/ports/ChangeLog.m68k (original)
+++ fsf/trunk/ports/ChangeLog.m68k Sat May 26 00:01:58 2012
@@ -1,3 +1,11 @@
+2012-05-26  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/m68k/kernel-features.h
+	(__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove.
+
+	* sysdeps/unix/sysv/linux/m68k/syscalls.list: Add chown.
+	* sysdeps/unix/sysv/linux/m68k/chown.c: Remove file.
+
 2012-05-23  Andreas Schwab  <schwab@xxxxxxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/m68k/bits/mman.h (MADV_DONTDUMP)

Modified: fsf/trunk/ports/ChangeLog.mips
==============================================================================
--- fsf/trunk/ports/ChangeLog.mips (original)
+++ fsf/trunk/ports/ChangeLog.mips Sat May 26 00:01:58 2012
@@ -1,3 +1,8 @@
+2012-05-25  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/mips/kernel-features.h
+	(__ASSUME_32BITUIDS): Remove.
+
 2012-05-23  Steve Ellcey  <sellcey@xxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/mips/Makefile

Modified: fsf/trunk/ports/sysdeps/arm/dl-irel.h
==============================================================================
--- fsf/trunk/ports/sysdeps/arm/dl-irel.h (original)
+++ fsf/trunk/ports/sysdeps/arm/dl-irel.h Sat May 26 00:01:58 2012
@@ -29,7 +29,7 @@
 __attribute ((always_inline))
 elf_ifunc_invoke (Elf32_Addr addr)
 {
-  return ((Elf32_Addr (*) (void)) (addr)) ();
+  return ((Elf32_Addr (*) (unsigned long int)) (addr)) (GLRO(dl_hwcap));
 }
 
 static inline void

Modified: fsf/trunk/ports/sysdeps/arm/dl-machine.h
==============================================================================
--- fsf/trunk/ports/sysdeps/arm/dl-machine.h (original)
+++ fsf/trunk/ports/sysdeps/arm/dl-machine.h Sat May 26 00:01:58 2012
@@ -25,6 +25,7 @@
 #include <sys/param.h>
 #include <tls.h>
 #include <dl-tlsdesc.h>
+#include <dl-irel.h>
 
 #define CLEAR_CACHE(BEG,END)						\
   INTERNAL_SYSCALL_ARM (cacheflush, , 3, (BEG), (END), 0)
@@ -377,7 +378,7 @@
 	  && __builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0)
 	  && __builtin_expect (sym->st_shndx != SHN_UNDEF, 1)
 	  && __builtin_expect (!skip_ifunc, 1))
-	value = ((Elf32_Addr (*) (void)) value) ();
+	value = elf_ifunc_invoke (value);
 
       switch (r_type)
 	{
@@ -551,7 +552,7 @@
 	  && __builtin_expect (ELFW(ST_TYPE) (sym->st_info) == STT_GNU_IFUNC, 0)
 	  && __builtin_expect (sym->st_shndx != SHN_UNDEF, 1)
 	  && __builtin_expect (!skip_ifunc, 1))
-	value = ((Elf32_Addr (*) (void)) value) ();
+	value = elf_ifunc_invoke (value);
 
       switch (r_type)
 	{

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/arm/kernel-features.h Sat May 26 00:01:58 2012
@@ -20,11 +20,6 @@
 /* The utimes syscall was added before 2.6.1.  */
 #if __LINUX_KERNEL_VERSION >= 132609
 # define __ASSUME_UTIMES	1
-#endif
-
-/* The new getrlimit syscall was added sometime before 2.4.6.  */
-#if __LINUX_KERNEL_VERSION >= 132102
-#define __ASSUME_NEW_GETRLIMIT_SYSCALL	1
 #endif
 
 /* On ARM the truncate64/ftruncate64/mmap2/stat64/lstat64/fstat64

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/bits/mman.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/bits/mman.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/bits/mman.h Sat May 26 00:01:58 2012
@@ -97,6 +97,9 @@
 # define MADV_UNMERGEABLE 13	/* KSM may not merge identical pages.  */
 # define MADV_HUGEPAGE	  14	/* Worth backing with hugepages.  */
 # define MADV_NOHUGEPAGE  15	/* Not worth backing with hugepages.  */
+# define MADV_DONTDUMP	  16	/* Explicity exclude from the core dump,
+				   overrides the coredump filter bits.  */
+# define MADV_DODUMP	  17	/* Clear the MADV_DONTDUMP flag.  */
 # define MADV_HWPOISON	  100	/* Poison a page for testing.  */
 #endif
 

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist Sat May 26 00:01:58 2012
@@ -68,11 +68,13 @@
  scandirat64 F
 GLIBC_2.16
  GLIBC_2.16 A
+ __getauxval F
  __poll_chk F
  __ppoll_chk F
  aligned_alloc F
  c16rtomb F
  c32rtomb F
+ getauxval F
  mbrtoc16 F
  mbrtoc32 F
  timespec_get F

Removed: fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/chown.c
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/chown.c (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/chown.c (removed)
@@ -1,68 +1,0 @@
-/* Copyright (C) 1998,2000,2002,2003,2006 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library.  If not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <errno.h>
-#include <unistd.h>
-
-#include <sysdep.h>
-#include <sys/syscall.h>
-#include <bp-checks.h>
-
-#include <linux/posix_types.h>
-#include <kernel-features.h>
-
-#ifdef __NR_chown32
-# if __ASSUME_32BITUIDS == 0
-/* This variable is shared with all files that need to check for 32bit
-   uids.  */
-extern int __libc_missing_32bit_uids;
-# endif
-#endif /* __NR_chown32 */
-
-int
-__chown (const char *file, uid_t owner, gid_t group)
-{
-#if __ASSUME_32BITUIDS > 0
-  return INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
-#else
-# ifdef __NR_chown32
-  if (__libc_missing_32bit_uids <= 0)
-    {
-      int result;
-      int saved_errno = errno;
-
-      result = INLINE_SYSCALL (chown32, 3, CHECK_STRING (file), owner, group);
-      if (result == 0 || errno != ENOSYS)
-	return result;
-
-      __set_errno (saved_errno);
-      __libc_missing_32bit_uids = 1;
-    }
-# endif /* __NR_chown32 */
-
-  if (((owner + 1) > (gid_t) ((__kernel_uid_t) -1U))
-      || ((group + 1) > (gid_t) ((__kernel_gid_t) -1U)))
-    {
-      __set_errno (EINVAL);
-      return -1;
-    }
-
-  return INLINE_SYSCALL (chown, 3, CHECK_STRING (file), owner, group);
-#endif
-}
-libc_hidden_def (__chown)
-weak_alias (__chown, chown)

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h Sat May 26 00:01:58 2012
@@ -24,7 +24,6 @@
 # define __ASSUME_STAT64_SYSCALL	1
 # define __ASSUME_FCNTL64		1
 # define __ASSUME_VFORK_SYSCALL		1
-# define __ASSUME_NEW_GETRLIMIT_SYSCALL 1
 #endif
 
 /* Many syscalls were added in 2.6.10 for m68k.  */

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/syscalls.list
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/syscalls.list (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/m68k/syscalls.list Sat May 26 00:01:58 2012
@@ -1,4 +1,6 @@
 # File name	Caller	Syscall name	Args	Strong name	Weak names
+
+chown		-	chown32		i:sii	__chown		chown
 
 cacheflush	EXTRA	cacheflush	i:iiii	__cacheflush	cacheflush
 prlimit64	EXTRA	prlimit64	i:iipp	prlimit64

Modified: fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/kernel-features.h
==============================================================================
--- fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/kernel-features.h (original)
+++ fsf/trunk/ports/sysdeps/unix/sysv/linux/mips/kernel-features.h Sat May 26 00:01:58 2012
@@ -1,6 +1,6 @@
 /* Set flags signalling availability of kernel features based on given
    kernel version number.
-   Copyright (C) 1999-2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,10 +18,6 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sgidefs.h>
-
-/* Linux 2.3.39 introduced 32bit UID/GIDs.  Some platforms had 32
-   bit type all along.  */
-#define __ASSUME_32BITUIDS		1
 
 /* MIPS platforms had IPC64 all along.  */
 #define __ASSUME_IPC64		1

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits