summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/vdso/so2s.sh
blob: e64cb6d9440e797e908beb7042c4f760e9bd9778 (plain)
1
2
3
4
5
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 '^\.'