diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2004-08-25 06:06:36 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2004-08-25 06:06:36 +0000 |
commit | 8eaede3bdb2c24b4aeea47dcc4be62aad0075b50 (patch) | |
tree | 0e20f2e28b69d3189480cf89db3e7ee33411dd8a /kernel/strip_modules | |
parent | 2b364b7c1a0ba9eeb456eb32c7655413bfb76827 (diff) | |
download | drakx-backup-do-not-use-8eaede3bdb2c24b4aeea47dcc4be62aad0075b50.tar drakx-backup-do-not-use-8eaede3bdb2c24b4aeea47dcc4be62aad0075b50.tar.gz drakx-backup-do-not-use-8eaede3bdb2c24b4aeea47dcc4be62aad0075b50.tar.bz2 drakx-backup-do-not-use-8eaede3bdb2c24b4aeea47dcc4be62aad0075b50.tar.xz drakx-backup-do-not-use-8eaede3bdb2c24b4aeea47dcc4be62aad0075b50.zip |
Make it possible to strip 2.6 kernel modules (at least those from 2.6.3)
Diffstat (limited to 'kernel/strip_modules')
-rwxr-xr-x | kernel/strip_modules | 7 |
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/) |