xref: /openbmc/linux/arch/x86/um/vdso/vdso.lds.S (revision 5c48b108)
15c48b108SAl Viro/*
25c48b108SAl Viro * Linker script for 64-bit vDSO.
35c48b108SAl Viro * We #include the file to define the layout details.
45c48b108SAl Viro * Here we only choose the prelinked virtual address.
55c48b108SAl Viro *
65c48b108SAl Viro * This file defines the version script giving the user-exported symbols in
75c48b108SAl Viro * the DSO.  We can define local symbols here called VDSO* to make their
85c48b108SAl Viro * values visible using the asm-x86/vdso.h macros from the kernel proper.
95c48b108SAl Viro */
105c48b108SAl Viro
115c48b108SAl Viro#define VDSO_PRELINK 0xffffffffff700000
125c48b108SAl Viro#include "vdso-layout.lds.S"
135c48b108SAl Viro
145c48b108SAl Viro/*
155c48b108SAl Viro * This controls what userland symbols we export from the vDSO.
165c48b108SAl Viro */
175c48b108SAl ViroVERSION {
185c48b108SAl Viro	LINUX_2.6 {
195c48b108SAl Viro	global:
205c48b108SAl Viro		clock_gettime;
215c48b108SAl Viro		__vdso_clock_gettime;
225c48b108SAl Viro		gettimeofday;
235c48b108SAl Viro		__vdso_gettimeofday;
245c48b108SAl Viro		getcpu;
255c48b108SAl Viro		__vdso_getcpu;
265c48b108SAl Viro		time;
275c48b108SAl Viro		__vdso_time;
285c48b108SAl Viro	local: *;
295c48b108SAl Viro	};
305c48b108SAl Viro}
315c48b108SAl Viro
325c48b108SAl ViroVDSO64_PRELINK = VDSO_PRELINK;
33