xref: /linux/arch/x86/entry/vdso/vdso32/vdso32.lds.S (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */
2d603c8e1SIngo Molnar/*
3d603c8e1SIngo Molnar * Linker script for 32-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#include <asm/page.h>
11d603c8e1SIngo Molnar
12d603c8e1SIngo Molnar#define BUILD_VDSO32
13d603c8e1SIngo Molnar
14d603c8e1SIngo Molnar#include "../vdso-layout.lds.S"
15d603c8e1SIngo Molnar
16d603c8e1SIngo Molnar/* The ELF entry point can be used to set the AT_SYSINFO value.  */
17d603c8e1SIngo MolnarENTRY(__kernel_vsyscall);
18d603c8e1SIngo Molnar
19d603c8e1SIngo Molnar/*
20d603c8e1SIngo Molnar * This controls what userland symbols we export from the vDSO.
21d603c8e1SIngo Molnar */
22d603c8e1SIngo MolnarVERSION
23d603c8e1SIngo Molnar{
24d603c8e1SIngo Molnar	LINUX_2.6 {
25d603c8e1SIngo Molnar	global:
26d603c8e1SIngo Molnar		__vdso_clock_gettime;
27d603c8e1SIngo Molnar		__vdso_gettimeofday;
28d603c8e1SIngo Molnar		__vdso_time;
29f66501dcSVincenzo Frascino		__vdso_clock_getres;
3022ca9622SVincenzo Frascino		__vdso_clock_gettime64;
31*92d33063SSebastian Andrzej Siewior		__vdso_getcpu;
32d603c8e1SIngo Molnar	};
33d603c8e1SIngo Molnar
34d603c8e1SIngo Molnar	LINUX_2.5 {
35d603c8e1SIngo Molnar	global:
36d603c8e1SIngo Molnar		__kernel_vsyscall;
37d603c8e1SIngo Molnar		__kernel_sigreturn;
38d603c8e1SIngo Molnar		__kernel_rt_sigreturn;
39d603c8e1SIngo Molnar	local: *;
40d603c8e1SIngo Molnar	};
41d603c8e1SIngo Molnar}
42