| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * GNU linker script for the VDSO library. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2012 ARM Limited |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 17 | 6 | * |
|---|
| 18 | 7 | * Author: Will Deacon <will.deacon@arm.com> |
|---|
| 19 | 8 | * Heavily based on the vDSO linker scripts for other archs. |
|---|
| .. | .. |
|---|
| 28 | 17 | |
|---|
| 29 | 18 | SECTIONS |
|---|
| 30 | 19 | { |
|---|
| 31 | | - PROVIDE(_vdso_data = . - PAGE_SIZE); |
|---|
| 20 | + PROVIDE(_vdso_data = . - __VVAR_PAGES * PAGE_SIZE); |
|---|
| 21 | +#ifdef CONFIG_TIME_NS |
|---|
| 22 | + PROVIDE(_timens_data = _vdso_data + PAGE_SIZE); |
|---|
| 23 | +#endif |
|---|
| 32 | 24 | . = VDSO_LBASE + SIZEOF_HEADERS; |
|---|
| 33 | 25 | |
|---|
| 34 | 26 | .hash : { *(.hash) } :text |
|---|
| .. | .. |
|---|
| 94 | 86 | __kernel_gettimeofday; |
|---|
| 95 | 87 | __kernel_clock_gettime; |
|---|
| 96 | 88 | __kernel_clock_getres; |
|---|
| 97 | | - __kernel_time; |
|---|
| 98 | 89 | local: *; |
|---|
| 99 | 90 | }; |
|---|
| 100 | 91 | } |
|---|