NetBSD/sys/lkm/arch/arm/lkmtramp.awk
2005-12-11 12:16:03 +00:00

17 lines
282 B
Awk

# $NetBSD: lkmtramp.awk,v 1.2 2005/12/11 12:24:46 christos Exp $
#
BEGIN {
print "#include <machine/asm.h>"
}
$2 == "R_ARM_PC24" {
if (x[$3] != "")
next;
if ($3 == "\.text")
next;
print "ENTRY(__wrap_"$3")"
print "\tldr\tpc,1f"
print "1:\t.word\t__real_"$3
x[$3]=".";
}