diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-01-28 12:07:46 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-01-31 13:55:38 -0500 |
commit | 328c4a871eddfe2559834467d8e28ccec620faef (patch) | |
tree | e73f39d75a6749b25538debe3c1db18ae1db0b57 | |
parent | 0ca961e3cd9d0bcbadc8073ef8f2d3d687e7c0ff (diff) | |
download | glibc-328c4a871eddfe2559834467d8e28ccec620faef.tar.gz glibc-328c4a871eddfe2559834467d8e28ccec620faef.tar.xz glibc-328c4a871eddfe2559834467d8e28ccec620faef.zip |
Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/faccessat.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 218e379c46..8dba792685 100644 --- 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-29 Chris Metcalf <cmetcalf@tilera.com> * scripts/config.guess: Update from upstream config git repository. diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c index c154deb40f..bff7a4b6fd 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. */ |