Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/arch/arm Keep track of undefined symbols and the...
details: https://anonhg.NetBSD.org/src/rev/47f7c813591b
branches: trunk
changeset: 789121:47f7c813591b
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 07 17:29:15 2013 +0000
description:
Keep track of undefined symbols and then use to determine whether a wrap
is required.
diffstat:
sys/modules/arch/arm/kmodwrap.awk | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (20 lines):
diff -r 4de282a992d5 -r 47f7c813591b sys/modules/arch/arm/kmodwrap.awk
--- a/sys/modules/arch/arm/kmodwrap.awk Wed Aug 07 17:09:50 2013 +0000
+++ b/sys/modules/arch/arm/kmodwrap.awk Wed Aug 07 17:29:15 2013 +0000
@@ -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]=".";
}
Home |
Main Index |
Thread Index |
Old Index