[PATCH] fxstatat: fix __fxstatat64 symbol generation
Yury Norov
ynorov@caviumnetworks.com
Fri Sep 9 12:29:00 GMT 2016
__fxstatat64 is defined with hidden_def, if XSTAT_IS_XSTAT64 is
enabled. It causes compile-time error. This patch fixes it.
GCC error:
In file included from <command-line>:0:0:
./../include/libc-symbols.h:432:26: error: â__EI___fxstatat64â aliased to undefined symbol â__GI___fxstatat64â
extern __typeof (name) __EI_##name \
^
./../include/libc-symbols.h:436:29: note: in expansion of macro â__hidden_ver1â
# define hidden_def(name) __hidden_ver1(__GI_##name, name, name);
^
./../include/libc-symbols.h:487:32: note: in expansion of macro âhidden_defâ
# define libc_hidden_def(name) hidden_def (name)
^
../sysdeps/unix/sysv/linux/fxstatat.c:64:1: note: in expansion of macro âlibc_hidden_defâ
libc_hidden_def (__fxstatat64)
^
2016-09-09 Yury Norov <ynorov@caviumnetworks.com>
* sysdeps/unix/sysv/linux/fxstatat.c: fix __fxstatat64
symmbol generation
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
---
sysdeps/unix/sysv/linux/fxstatat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/fxstatat.c b/sysdeps/unix/sysv/linux/fxstatat.c
index f716bf3..32959e5 100644
--- a/sysdeps/unix/sysv/linux/fxstatat.c
+++ b/sysdeps/unix/sysv/linux/fxstatat.c
@@ -61,5 +61,5 @@ libc_hidden_def (__fxstatat)
#ifdef XSTAT_IS_XSTAT64
# undef __fxstatat64
strong_alias (__fxstatat, __fxstatat64);
-libc_hidden_def (__fxstatat64)
+libc_hidden_ver (__fxstatat, __fxstatat64)
#endif
--
2.7.4
More information about the Libc-alpha
mailing list