28 lines
362 B
Awk
28 lines
362 B
Awk
# $NetBSD: lkmwrap.awk,v 1.3 2005/12/11 12:24:47 christos Exp $
|
|
#
|
|
/^SYMBOL TABLE:/ {
|
|
doing_symbols = 1;
|
|
next;
|
|
}
|
|
|
|
/^RELOCATION RECORDS/ {
|
|
doing_symbols = 0;
|
|
doing_relocs = 1;
|
|
next;
|
|
}
|
|
|
|
$2 == "*UND*" {
|
|
if (doing_symbols)
|
|
x[$4] = "+";
|
|
next;
|
|
}
|
|
|
|
$2 == "R_PPC_REL24" {
|
|
if (!doing_relocs)
|
|
next;
|
|
if (x[$3] != "+")
|
|
next;
|
|
printf " --wrap "$3;
|
|
x[$3]=".";
|
|
}
|