hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/riscv/kernel/vdso/vdso.lds.S
....@@ -1,20 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2012 Regents of the University of California
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation, version 2.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
5
+#include <asm/page.h>
136
147 OUTPUT_ARCH(riscv)
158
169 SECTIONS
1710 {
11
+ PROVIDE(_vdso_data = . + PAGE_SIZE);
1812 . = SIZEOF_HEADERS;
1913
2014 .hash : { *(.hash) } :text
....@@ -70,9 +64,11 @@
7064 LINUX_4.15 {
7165 global:
7266 __vdso_rt_sigreturn;
67
+#ifdef HAS_VGETTIMEOFDAY
7368 __vdso_gettimeofday;
7469 __vdso_clock_gettime;
7570 __vdso_clock_getres;
71
+#endif
7672 __vdso_getcpu;
7773 __vdso_flush_icache;
7874 local: *;