forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm64/kernel/vdso/vdso.lds.S
....@@ -1,19 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * GNU linker script for the VDSO library.
34 *
45 * 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/>.
176 *
187 * Author: Will Deacon <will.deacon@arm.com>
198 * Heavily based on the vDSO linker scripts for other archs.
....@@ -28,7 +17,10 @@
2817
2918 SECTIONS
3019 {
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
3224 . = VDSO_LBASE + SIZEOF_HEADERS;
3325
3426 .hash : { *(.hash) } :text
....@@ -94,7 +86,6 @@
9486 __kernel_gettimeofday;
9587 __kernel_clock_gettime;
9688 __kernel_clock_getres;
97
- __kernel_time;
9889 local: *;
9990 };
10091 }