summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-09-15 08:39:50 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-09-15 08:39:50 +0000
commita3972dc7082c1e4fad7692d631783cc33a3e3db1 (patch)
treede3dadb529870e178095a6bad5764dfadafe46c2
parentf77d4213f859017eb73312eb7b857765eba0022c (diff)
downloaddrakx-a3972dc7082c1e4fad7692d631783cc33a3e3db1.tar
drakx-a3972dc7082c1e4fad7692d631783cc33a3e3db1.tar.gz
drakx-a3972dc7082c1e4fad7692d631783cc33a3e3db1.tar.bz2
drakx-a3972dc7082c1e4fad7692d631783cc33a3e3db1.tar.xz
drakx-a3972dc7082c1e4fad7692d631783cc33a3e3db1.zip
fix strip
-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;
}