mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
f144a6b4d1
The only fast implementation of time(2) we expose is through the vsyscall page and we want to get userspace to stop using the vsyscall page. So make it available through the vDSO as well. This is essentially a cut-n-paste job. Signed-off-by: Andy Lutomirski <luto@mit.edu> Cc: Andi Kleen <andi@firstfloor.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Borislav Petkov <bp@amd64.org> Link: http://lkml.kernel.org/r/%3Cbf963bac5207de4b29613f27c42705e4371812a8.1306156808.git.luto%40mit.edu%3E Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
33 lines
728 B
ArmAsm
33 lines
728 B
ArmAsm
/*
|
|
* Linker script for 64-bit vDSO.
|
|
* We #include the file to define the layout details.
|
|
* Here we only choose the prelinked virtual address.
|
|
*
|
|
* This file defines the version script giving the user-exported symbols in
|
|
* the DSO. We can define local symbols here called VDSO* to make their
|
|
* values visible using the asm-x86/vdso.h macros from the kernel proper.
|
|
*/
|
|
|
|
#define VDSO_PRELINK 0xffffffffff700000
|
|
#include "vdso-layout.lds.S"
|
|
|
|
/*
|
|
* This controls what userland symbols we export from the vDSO.
|
|
*/
|
|
VERSION {
|
|
LINUX_2.6 {
|
|
global:
|
|
clock_gettime;
|
|
__vdso_clock_gettime;
|
|
gettimeofday;
|
|
__vdso_gettimeofday;
|
|
getcpu;
|
|
__vdso_getcpu;
|
|
time;
|
|
__vdso_time;
|
|
local: *;
|
|
};
|
|
}
|
|
|
|
VDSO64_PRELINK = VDSO_PRELINK;
|