[PATCH] Restore module support.

Roman Zippel
2003-02-06T23:01:42Z

Hi,

On Tue, 4 Feb 2003, Rusty Russell wrote:

> I'm going to stop here, since I don't think you understand what I am
> proposing, nor how the current system works: this makes is extremely
> difficult to describe changes, and time consuming.

Rusty, if you continue to ignore criticism, I have only one answer left:

http://www.xs4all.nl/~zippel/restore-modules-2.5.59.diff

These numbers are quite interesting:

$ diffstat restore-modules-2.5.59.diff
arch/i386/kernel/Makefile | 1
arch/i386/kernel/cpu/mtrr/if.c | 1
arch/i386/kernel/entry.S | 6
arch/i386/kernel/module.c | 111 -
arch/i386/mm/extable.c | 1
drivers/char/agp/Makefile | 2
drivers/char/misc.c | 1
drivers/eisa/eisa-bus.c | 1
drivers/input/serio/serport.c | 1
fs/filesystems.c | 27
fs/proc/proc_misc.c | 12
include/asm-generic/percpu.h | 1
include/asm-generic/vmlinux.lds.h | 15
include/asm-i386/module.h | 57
include/linux/init.h | 130 -
include/linux/module.h | 817 ++++++------
include/linux/moduleloader.h | 43
include/linux/moduleparam.h | 126 -
init/Kconfig | 40
init/main.c | 109 +
kernel/Makefile | 8
kernel/extable.c | 41
kernel/intermodule.c | 182 --
kernel/kallsyms.c | 5
kernel/kmod.c | 2
kernel/ksyms.c | 7
kernel/module.c | 2448 +++++++++++++++++--------------------
kernel/params.c | 336 -----
net/ipv4/netfilter/ip_nat_helper.c | 2
scripts/Makefile.modinst | 8
sound/sound_core.c | 1
31 files changed, 1805 insertions(+), 2737 deletions(-)

$ size linux-2.5.59-org/vmlinux linux-2.5.59-mod/vmlinux
text data bss dec hex filename
3403915 864229 338052 4606196 4648f4 linux-2.5.59-org/vmlinux
3361448 863393 342020 4566861 45af4d linux-2.5.59-mod/vmlinux

This patch still has modversion disabled, when Kai finishes the new
modversion support, I'll add the support for it to modutils.

bye, Roman