]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
authorChris Metcalf <cmetcalf@tilera.com>
Sat, 28 Jan 2012 17:07:46 +0000 (12:07 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 28 Jun 2012 15:05:49 +0000 (11:05 -0400)
(cherry picked from commit 3601428fb029e1c6e98d409dad64d709972cdf57)

ChangeLog
sysdeps/unix/sysv/linux/faccessat.c

index 53ffbe2b53c16770c7b90d094739e34c0de54e9d..f665050a29c9a149da271c20a841e96414001c7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
+
+       * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
+
 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
 
        * include/sys/epoll.h: New file.
index c154deb40f215f6836f50e4eedc28e52d8c457d5..bff7a4b6fd0be6fdca270f8a4d15103d7fa21c49 100644 (file)
@@ -1,5 +1,5 @@
 /* Test for access to file, relative to open directory.  Linux version.
-   Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2009, 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
@@ -114,7 +114,7 @@ faccessat (fd, file, mode, flag)
 #endif
 
   struct stat64 stats;
-  if (fstatat64 (fd, file, &stats, flag & AT_SYMLINK_NOFOLLOW))
+  if (__fxstatat64 (_STAT_VER, fd, file, &stats, flag & AT_SYMLINK_NOFOLLOW))
     return -1;
 
   mode &= (X_OK | W_OK | R_OK);        /* Clear any bogus bits. */