Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Roland McGrath | 0249c9c | 2008-01-30 13:30:42 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Linker script for 32-bit vDSO. |
| 4 | * We #include the file to define the layout details. |
Roland McGrath | 0249c9c | 2008-01-30 13:30:42 +0100 | [diff] [blame] | 5 | * |
| 6 | * This file defines the version script giving the user-exported symbols in |
Andy Lutomirski | 2b6f2e6 | 2014-05-05 12:19:37 -0700 | [diff] [blame] | 7 | * the DSO. |
Roland McGrath | 0249c9c | 2008-01-30 13:30:42 +0100 | [diff] [blame] | 8 | */ |
| 9 | |
Stefani Seibold | 7a59ed4 | 2014-03-17 23:22:09 +0100 | [diff] [blame] | 10 | #include <asm/page.h> |
| 11 | |
| 12 | #define BUILD_VDSO32 |
Stefani Seibold | 7a59ed4 | 2014-03-17 23:22:09 +0100 | [diff] [blame] | 13 | |
Roland McGrath | 0249c9c | 2008-01-30 13:30:42 +0100 | [diff] [blame] | 14 | #include "../vdso-layout.lds.S" |
| 15 | |
| 16 | /* The ELF entry point can be used to set the AT_SYSINFO value. */ |
| 17 | ENTRY(__kernel_vsyscall); |
| 18 | |
| 19 | /* |
| 20 | * This controls what userland symbols we export from the vDSO. |
| 21 | */ |
| 22 | VERSION |
| 23 | { |
Andy Lutomirski | 37c9755 | 2014-03-29 13:15:35 -0700 | [diff] [blame] | 24 | LINUX_2.6 { |
| 25 | global: |
| 26 | __vdso_clock_gettime; |
| 27 | __vdso_gettimeofday; |
| 28 | __vdso_time; |
| 29 | }; |
| 30 | |
Roland McGrath | 0249c9c | 2008-01-30 13:30:42 +0100 | [diff] [blame] | 31 | LINUX_2.5 { |
| 32 | global: |
| 33 | __kernel_vsyscall; |
| 34 | __kernel_sigreturn; |
| 35 | __kernel_rt_sigreturn; |
| 36 | local: *; |
| 37 | }; |
| 38 | } |