summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/vdso/so2s.sh
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/kernel/vdso/so2s.sh')
-rwxr-xr-xarch/riscv/kernel/vdso/so2s.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv/kernel/vdso/so2s.sh b/arch/riscv/kernel/vdso/so2s.sh
new file mode 100755
index 000000000..e64cb6d94
--- /dev/null
+++ b/arch/riscv/kernel/vdso/so2s.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright 2020 Palmer Dabbelt <palmerdabbelt@google.com>
+
+sed 's!\([0-9a-f]*\) T \([a-z0-9_]*\)\(@@LINUX_4.15\)*!.global \2\n.set \2,0x\1!' \
+| grep '^\.'