Re: [PATCH] config.gz doesn't need module_exit

From: Andrew Morton
Date: Sun Sep 17 2006 - 01:39:27 EST


On Sat, 16 Sep 2006 15:11:22 -0700
"Randy.Dunlap" <rdunlap@xxxxxxxxxxxx> wrote:

> From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
>
> This is an alternative patch to the current /proc/config.gz
> 'module' patch from Ross. Pointed out by Alexey.
>
> /proc/config.gz handler doesn't need module_exit() since it
> isn't built as a module and the exit function won't be used
> when the code is built into the kernel.

It doesn't buy us much though - the __exit code is all freed up
at runtime.

Or it should be. arch/i386/kernel/vmlinux.lds.S says

/* .exit.text is discard at runtime, not link time, to deal with references
from .altinstructions and .eh_frame */

but free_initmem() doesn't free it.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/