xref: /linux/arch/riscv/kernel/compat_vdso/gen_compat_vdso_offsets.sh (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4LC_ALL=C
5sed -n -e 's/^[0]\+\(0[0-9a-fA-F]*\) . \(__vdso_[a-zA-Z0-9_]*\)$/\#define compat\2_offset\t0x\1/p'
6