xref: /linux/arch/x86/entry/vdso/vdso32/vdso32.lds.S (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg 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;
29d603c8e1SIngo Molnar	};
30d603c8e1SIngo Molnar
31d603c8e1SIngo Molnar	LINUX_2.5 {
32d603c8e1SIngo Molnar	global:
33d603c8e1SIngo Molnar		__kernel_vsyscall;
34d603c8e1SIngo Molnar		__kernel_sigreturn;
35d603c8e1SIngo Molnar		__kernel_rt_sigreturn;
36d603c8e1SIngo Molnar	local: *;
37d603c8e1SIngo Molnar	};
38d603c8e1SIngo Molnar}
39