From a3972dc7082c1e4fad7692d631783cc33a3e3db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Mon, 15 Sep 2003 08:39:50 +0000 Subject: fix strip --- kernel/strip_modules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel') 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; } -- cgit v1.2.1