Re: Linux 2.3.18ac6

David Woodhouse (David.Woodhouse@mvhi.com)
Mon, 20 Sep 1999 17:38:26 +0100


jj@sunsite.ms.mff.cuni.cz said:
> The correct thing to do is IMHO put it into .text.exit and .data.exit
> and add clauses into arch vmlinux.lds that it will throw those
> sections away before linking vmlinux. It is never needed, so why
> should kernel carry unneeded text/data. It was in my init.h patch I've
> sent last time to the list, if anyone is interested I can dig it out
> and resend.

There are init_module() routines which call cleanup_module() to handle
failures during the initialisation. For these to work, it would be better to
treat __exit code just the same as __init code; i.e. drop it at run-time.

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/