blob: 422764a81d324223e25757f90c081fd2b5d272ab [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Roland McGrath0249c9c2008-01-30 13:30:42 +01002/*
3 * Linker script for 32-bit vDSO.
4 * We #include the file to define the layout details.
Roland McGrath0249c9c2008-01-30 13:30:42 +01005 *
6 * This file defines the version script giving the user-exported symbols in
Andy Lutomirski2b6f2e62014-05-05 12:19:37 -07007 * the DSO.
Roland McGrath0249c9c2008-01-30 13:30:42 +01008 */
9
Stefani Seibold7a59ed42014-03-17 23:22:09 +010010#include <asm/page.h>
11
12#define BUILD_VDSO32
Stefani Seibold7a59ed42014-03-17 23:22:09 +010013
Roland McGrath0249c9c2008-01-30 13:30:42 +010014#include "../vdso-layout.lds.S"
15
16/* The ELF entry point can be used to set the AT_SYSINFO value. */
17ENTRY(__kernel_vsyscall);
18
19/*
20 * This controls what userland symbols we export from the vDSO.
21 */
22VERSION
23{
Andy Lutomirski37c97552014-03-29 13:15:35 -070024 LINUX_2.6 {
25 global:
26 __vdso_clock_gettime;
27 __vdso_gettimeofday;
28 __vdso_time;
29 };
30
Roland McGrath0249c9c2008-01-30 13:30:42 +010031 LINUX_2.5 {
32 global:
33 __kernel_vsyscall;
34 __kernel_sigreturn;
35 __kernel_rt_sigreturn;
36 local: *;
37 };
38}