summaryrefslogtreecommitdiffstats
path: root/kernel/strip_modules
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/strip_modules')
-rwxr-xr-xkernel/strip_modules8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/strip_modules b/kernel/strip_modules
index 5badbea40..98e4f4496 100755
--- a/kernel/strip_modules
+++ b/kernel/strip_modules
@@ -71,12 +71,12 @@ function strip_module(object,
# t static label/procedures
if ($1 ~ /[bdrt]/)
to_strip[$2] = "";
- else if ($1 != "?")
- keep_symbol[$2] = "";
- else if ($0 ~ /\? __ksymtab_/)
+ else if ($2 ~ /R __ksymtab_/)
keep_symbol[substr($2, 11)] = "";
- else if ($0 ~ /\? __module_parm_/)
+ else if ($0 ~ /R __module_parm_/)
keep_symbol[substr($2, 15)] = "";
+ else if ($1 != "?")
+ keep_symbol[$2] = "";
if ($2 ~ /__module/)
new_module_format = 1;
}