xref: /openbmc/linux/arch/x86/entry/vdso/vdso.lds.S (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
2d603c8e1SIngo Molnar/*
3d603c8e1SIngo Molnar * Linker script for 64-bit vDSO.
4d603c8e1SIngo Molnar * We #include the file to define the layout details.
5d603c8e1SIngo Molnar *
6d603c8e1SIngo Molnar * This file defines the version script giving the user-exported symbols in
7d603c8e1SIngo Molnar * the DSO.
8d603c8e1SIngo Molnar */
9d603c8e1SIngo Molnar
10d603c8e1SIngo Molnar#define BUILD_VDSO64
11d603c8e1SIngo Molnar
12d603c8e1SIngo Molnar#include "vdso-layout.lds.S"
13d603c8e1SIngo Molnar
14d603c8e1SIngo Molnar/*
15d603c8e1SIngo Molnar * This controls what userland symbols we export from the vDSO.
16d603c8e1SIngo Molnar */
17d603c8e1SIngo MolnarVERSION {
18d603c8e1SIngo Molnar	LINUX_2.6 {
19d603c8e1SIngo Molnar	global:
20d603c8e1SIngo Molnar		clock_gettime;
21d603c8e1SIngo Molnar		__vdso_clock_gettime;
22d603c8e1SIngo Molnar		gettimeofday;
23d603c8e1SIngo Molnar		__vdso_gettimeofday;
24d603c8e1SIngo Molnar		getcpu;
25d603c8e1SIngo Molnar		__vdso_getcpu;
26d603c8e1SIngo Molnar		time;
27d603c8e1SIngo Molnar		__vdso_time;
28f66501dcSVincenzo Frascino		clock_getres;
29f66501dcSVincenzo Frascino		__vdso_clock_getres;
30*45be2ad0SNathan Chancellor#ifdef CONFIG_X86_SGX
3184664369SSean Christopherson		__vdso_sgx_enter_enclave;
32*45be2ad0SNathan Chancellor#endif
33d603c8e1SIngo Molnar	local: *;
34d603c8e1SIngo Molnar	};
35d603c8e1SIngo Molnar}
36