mirror of
https://sourceware.org/git/glibc.git
synced 2024-09-20 08:30:00 +00:00
sparc: Enable VDSO for static linking
Checked on sparc64-linux-gnu and sparcv9-linux-gnu. [BZ #19767] * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED. * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL): Define.
This commit is contained in:
parent
5e855c8954
commit
c9c1a413c0
@ -1,5 +1,11 @@
|
|||||||
2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||||
|
|
||||||
|
[BZ #19767]
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
|
||||||
|
Define.
|
||||||
|
|
||||||
[BZ #19767]
|
[BZ #19767]
|
||||||
* sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
|
* sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
|
||||||
* sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
|
* sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
|
||||||
|
@ -17,9 +17,8 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#ifdef SHARED
|
#include <dl-vdso.h>
|
||||||
# include <dl-vdso.h>
|
#include <libc-vdso.h>
|
||||||
# include <libc-vdso.h>
|
|
||||||
|
|
||||||
long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *)
|
long int (*VDSO_SYMBOL (gettimeofday)) (struct timeval *, void *)
|
||||||
attribute_hidden;
|
attribute_hidden;
|
||||||
@ -40,7 +39,6 @@ _libc_vdso_platform_setup (void)
|
|||||||
VDSO_SYMBOL (clock_gettime) = p;
|
VDSO_SYMBOL (clock_gettime) = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
# define VDSO_SETUP _libc_vdso_platform_setup
|
#define VDSO_SETUP _libc_vdso_platform_setup
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <csu/init-first.c>
|
#include <csu/init-first.c>
|
||||||
|
@ -20,14 +20,10 @@
|
|||||||
#ifndef _LIBC_VDSO_H
|
#ifndef _LIBC_VDSO_H
|
||||||
#define _LIBC_VDSO_H
|
#define _LIBC_VDSO_H
|
||||||
|
|
||||||
#ifdef SHARED
|
#include <sysdep-vdso.h>
|
||||||
|
|
||||||
# include <sysdep-vdso.h>
|
|
||||||
|
|
||||||
extern long int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *)
|
extern long int (*VDSO_SYMBOL(gettimeofday)) (struct timeval *, void *)
|
||||||
attribute_hidden;
|
attribute_hidden;
|
||||||
extern long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
|
extern long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _LIBC_VDSO_H */
|
#endif /* _LIBC_VDSO_H */
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
#ifndef _LINUX_SPARC_SYSDEP_H
|
#ifndef _LINUX_SPARC_SYSDEP_H
|
||||||
#define _LINUX_SPARC_SYSDEP_H 1
|
#define _LINUX_SPARC_SYSDEP_H 1
|
||||||
|
|
||||||
|
/* Always enable vsyscalls on sparc */
|
||||||
|
#define ALWAYS_USE_VSYSCALL 1
|
||||||
|
|
||||||
#include <sysdeps/unix/sysdep.h>
|
#include <sysdeps/unix/sysdep.h>
|
||||||
#include <sysdeps/unix/sysv/linux/sysdep.h>
|
#include <sysdeps/unix/sysv/linux/sysdep.h>
|
||||||
#include <sysdeps/sparc/sysdep.h>
|
#include <sysdeps/sparc/sysdep.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user