diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-01-28 12:07:46 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-06-28 11:05:49 -0400 |
commit | 2fbd159a77db9e6a08e637fb247c782cfac6f78f (patch) | |
tree | 7f75dcfe4aad9f76ea9a3a54306b64b3d936ef61 /sysdeps/unix | |
parent | 730ca05f093c53088f1d174ee68f1d8c82e5c998 (diff) | |
download | glibc-2fbd159a77db9e6a08e637fb247c782cfac6f78f.zip glibc-2fbd159a77db9e6a08e637fb247c782cfac6f78f.tar.gz glibc-2fbd159a77db9e6a08e637fb247c782cfac6f78f.tar.bz2 |
Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
(cherry picked from commit 3601428fb029e1c6e98d409dad64d709972cdf57)
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/faccessat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c index c154deb..bff7a4b 100644 --- a/sysdeps/unix/sysv/linux/faccessat.c +++ b/sysdeps/unix/sysv/linux/faccessat.c @@ -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. */ |