diff options
author | Rafael Ávila de Espíndola <rafael@espindo.la> | 2018-11-30 14:32:35 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-11-30 14:32:35 -0800 |
commit | 15b8d67e29142251a30576b5ab469051a8833e97 (patch) | |
tree | 48c205d144aa23f1ff7d9b87c0c7e594675d2925 /sysdeps/unix | |
parent | 5e63c240a22c70d928e5c645f913d59074afd329 (diff) | |
download | glibc-15b8d67e29142251a30576b5ab469051a8833e97.tar glibc-15b8d67e29142251a30576b5ab469051a8833e97.tar.gz glibc-15b8d67e29142251a30576b5ab469051a8833e97.tar.bz2 glibc-15b8d67e29142251a30576b5ab469051a8833e97.zip |
Enable VDSO on i386 statically linked programs
[BZ #19767]
* sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
* sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
New.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/init-first.c | 12 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sysdep.h | 3 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/init-first.c b/sysdeps/unix/sysv/linux/i386/init-first.c index 82ac7f5cf2..6e62dd5923 100644 --- a/sysdeps/unix/sysv/linux/i386/init-first.c +++ b/sysdeps/unix/sysv/linux/i386/init-first.c @@ -16,11 +16,10 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#ifdef SHARED -# include <time.h> -# include <sysdep.h> -# include <dl-vdso.h> -# include <sysdep-vdso.h> +#include <time.h> +#include <sysdep.h> +#include <dl-vdso.h> +#include <sysdep-vdso.h> long int (*VDSO_SYMBOL (clock_gettime)) (clockid_t, struct timespec *) attribute_hidden; @@ -44,7 +43,6 @@ __vdso_platform_setup (void) VDSO_SYMBOL (clock_gettime) = p; } -# define VDSO_SETUP __vdso_platform_setup -#endif +#define VDSO_SETUP __vdso_platform_setup #include <csu/init-first.c> diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 3255cc78b8..3891663a64 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -19,6 +19,9 @@ #ifndef _LINUX_I386_SYSDEP_H #define _LINUX_I386_SYSDEP_H 1 +/* Always enable vsyscalls on i386 */ +#define ALWAYS_USE_VSYSCALL 1 + /* There is some commonality. */ #include <sysdeps/unix/sysv/linux/sysdep.h> #include <sysdeps/unix/i386/sysdep.h> |