glibc/sysdeps
Joseph Myers bfb0deb355 Fix make-syscalls.sh VDSO support for GCC 8.
sysdeps/unix/make-syscalls.sh has support, used only by x32, for
generating IFUNCs for kernel VDSO symbols.  This support creates
IFUNCs by setting symbol types manually, which is bad for debug info
and does not work with current GCC mainline because it results in
errors from the checks on types of function aliases.

This patch fixes it to use the common __ifunc macro, which uses the
ifunc attribute when available and so works with GCC mainline.  Note
however that the original error resulted from an indirect inclusion of
a header declaring __gettimeofday from the generated sources, and
using __ifunc now relies on such an indirect inclusion remaining as it
means use of __typeof to determine the correct types.  If glibc's
headers change in such a way as to remove that indirect inclusion, it
will become necessary to change the syscalls.list syntax for VDSO
syscalls so the name of the header to include can be specified.

Tested (compilation only) with build-many-glibcs.py that this fixes
the build for x32 with GCC mainline.

	* sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
	using VDSO.
2017-09-26 21:21:01 +00:00
..
aarch64 Optimized generic expf and exp2f with wrappers 2017-09-25 10:44:39 +01:00
alpha Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
arm Enable unwind info in libc-start.c and backtrace.c 2017-09-19 15:07:58 +01:00
generic Define and use libm_alias_float128. 2017-09-14 01:11:46 +00:00
gnu posix: Sync glob with gnulib [BZ #1062] 2017-09-08 09:39:13 +02:00
hppa Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
i386 Optimized generic expf and exp2f with wrappers 2017-09-25 10:44:39 +01:00
ia64 Fix ia64 executable stack default (bug 22156). 2017-09-26 16:30:46 +00:00
ieee754 Fix typo in sincos32.h inclusion guard. 2017-09-25 15:56:22 +02:00
init_array Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k Optimized generic expf and exp2f with wrappers 2017-09-25 10:44:39 +01:00
mach hurd: Fix bits/socket.h conformity 2017-09-24 22:21:41 +02:00
microblaze Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
mips Enable unwind info in libc-start.c and backtrace.c 2017-09-19 15:07:58 +01:00
nios2 Enable unwind info in libc-start.c and backtrace.c 2017-09-19 15:07:58 +01:00
nptl Remove extra semicolons in struct pthread_mutex (bug 21804) 2017-07-24 12:22:05 +02:00
posix Add missing libc_hidden_weak/def calls 2017-09-17 21:57:39 +02:00
powerpc powerpc: Regenerate ULPs for expf() and exp2f() 2017-09-26 16:13:33 -03:00
pthread aio: Remove internal_function function attribute 2017-08-31 15:59:06 +02:00
s390 Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
sh Enable unwind info in libc-start.c and backtrace.c 2017-09-19 15:07:58 +01:00
sparc Use generic __ifunc for SPARC. 2017-09-26 19:49:33 +00:00
tile Obsolete pow10 functions. 2017-09-01 21:13:18 +00:00
unix Fix make-syscalls.sh VDSO support for GCC 8. 2017-09-26 21:21:01 +00:00
wordsize-32 Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
wordsize-64 posix: Consolidate Linux glob implementation 2017-09-08 16:34:02 +02:00
x86 x86: Add MathVec_Prefer_No_AVX512 to cpu-features [BZ #21967] 2017-09-12 07:54:47 -07:00
x86_64 Add SSE4.1 trunc, truncf (bug 20142). 2017-09-20 16:54:05 +00:00