summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rwxr-xr-xkernel/strip_modules7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/strip_modules b/kernel/strip_modules
index 98e4f4496..0319507f0 100755
--- a/kernel/strip_modules
+++ b/kernel/strip_modules
@@ -69,12 +69,19 @@ function strip_module(object,
# d static variable, initialised
# r static array, initialised
# t static label/procedures
+ print $0 ":" $3 ":" $5 > "/dev/stderr";
if ($1 ~ /[bdrt]/)
to_strip[$2] = "";
else if ($2 ~ /R __ksymtab_/)
keep_symbol[substr($2, 11)] = "";
else if ($0 ~ /R __module_parm_/)
keep_symbol[substr($2, 15)] = "";
+ else if ($0 ~ /D __parm_/)
+ keep_symbol[substr($2, 8)] = "";
+ else if ($3 ~ /__ksymtab/) {
+ print "keep " $5 > "/dev/stderr";
+ keep_symbol[$5] = "";
+ }
else if ($1 != "?")
keep_symbol[$2] = "";
if ($2 ~ /__module/)