xref: /linux/arch/x86/entry/vdso/vdso32/vdso32.lds.S (revision d603c8e184d882cc3f55c599f4185bad956ee0a7)
1*d603c8e1SIngo Molnar/*
2*d603c8e1SIngo Molnar * Linker script for 32-bit vDSO.
3*d603c8e1SIngo Molnar * We #include the file to define the layout details.
4*d603c8e1SIngo Molnar *
5*d603c8e1SIngo Molnar * This file defines the version script giving the user-exported symbols in
6*d603c8e1SIngo Molnar * the DSO.
7*d603c8e1SIngo Molnar */
8*d603c8e1SIngo Molnar
9*d603c8e1SIngo Molnar#include <asm/page.h>
10*d603c8e1SIngo Molnar
11*d603c8e1SIngo Molnar#define BUILD_VDSO32
12*d603c8e1SIngo Molnar
13*d603c8e1SIngo Molnar#include "../vdso-layout.lds.S"
14*d603c8e1SIngo Molnar
15*d603c8e1SIngo Molnar/* The ELF entry point can be used to set the AT_SYSINFO value.  */
16*d603c8e1SIngo MolnarENTRY(__kernel_vsyscall);
17*d603c8e1SIngo Molnar
18*d603c8e1SIngo Molnar/*
19*d603c8e1SIngo Molnar * This controls what userland symbols we export from the vDSO.
20*d603c8e1SIngo Molnar */
21*d603c8e1SIngo MolnarVERSION
22*d603c8e1SIngo Molnar{
23*d603c8e1SIngo Molnar	LINUX_2.6 {
24*d603c8e1SIngo Molnar	global:
25*d603c8e1SIngo Molnar		__vdso_clock_gettime;
26*d603c8e1SIngo Molnar		__vdso_gettimeofday;
27*d603c8e1SIngo Molnar		__vdso_time;
28*d603c8e1SIngo Molnar	};
29*d603c8e1SIngo Molnar
30*d603c8e1SIngo Molnar	LINUX_2.5 {
31*d603c8e1SIngo Molnar	global:
32*d603c8e1SIngo Molnar		__kernel_vsyscall;
33*d603c8e1SIngo Molnar		__kernel_sigreturn;
34*d603c8e1SIngo Molnar		__kernel_rt_sigreturn;
35*d603c8e1SIngo Molnar	local: *;
36*d603c8e1SIngo Molnar	};
37*d603c8e1SIngo Molnar}
38