Module Name:    src
Committed By:   matt
Date:           Wed Aug  7 17:29:15 UTC 2013

Modified Files:
        src/sys/modules/arch/arm: kmodwrap.awk

Log Message:
Keep track of undefined symbols and then use to determine whether a wrap
is required.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/arch/arm/kmodwrap.awk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/modules/arch/arm/kmodwrap.awk
diff -u src/sys/modules/arch/arm/kmodwrap.awk:1.1 src/sys/modules/arch/arm/kmodwrap.awk:1.2
--- src/sys/modules/arch/arm/kmodwrap.awk:1.1	Wed Aug  7 17:06:22 2013
+++ src/sys/modules/arch/arm/kmodwrap.awk	Wed Aug  7 17:29:15 2013
@@ -1,10 +1,12 @@
-#	$NetBSD: kmodwrap.awk,v 1.1 2013/08/07 17:06:22 matt Exp $
+#	$NetBSD: kmodwrap.awk,v 1.2 2013/08/07 17:29:15 matt Exp $
+
+$2 == "*UND*" {
+	undef[$4]=".";
+}
 
 $2 == "R_ARM_PC24" || $2 == "R_ARM_CALL" || $2 == "R_ARM_JUMP24" {
-	if (x[$3] != "")
+	if (x[$3] != "" || undef[$3] != ".")
 		next;
-	if (index($3, ".text") > 0)
-		next
 	printf " --wrap="$3;
 	x[$3]=".";
 }

Reply via email to