mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
This commit is contained in:
parent
73139a7628
commit
3601428fb0
@ -1,3 +1,7 @@
|
|||||||
|
2012-01-28 Chris Metcalf <cmetcalf@tilera.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
|
||||||
|
|
||||||
2012-01-28 Ulrich Drepper <drepper@gmail.com>
|
2012-01-28 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
|
* sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test for access to file, relative to open directory. Linux version.
|
/* 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.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -114,7 +114,7 @@ faccessat (fd, file, mode, flag)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct stat64 stats;
|
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;
|
return -1;
|
||||||
|
|
||||||
mode &= (X_OK | W_OK | R_OK); /* Clear any bogus bits. */
|
mode &= (X_OK | W_OK | R_OK); /* Clear any bogus bits. */
|
||||||
|
Loading…
Reference in New Issue
Block a user