1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Prefer real syscalls instead of vsyscalls on x86-64 outside libc.so

This commit is contained in:
Ulrich Drepper
2011-09-06 00:12:18 -04:00
parent 6585cb60ee
commit ef60624956
5 changed files with 40 additions and 5 deletions

View File

@ -546,3 +546,8 @@
#if __LINUX_KERNEL_VERSION >= 0x020627
# define __ASSUME_SENDMMSG 1
#endif
/* getcpu is a syscall for x86-64 since 3.1. */
#if defined __x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100
# define __ASSUME_GETCPU_SYSCALL 1
#endif