Re: [PATCH] Allow compilation with -ffunction-sections

From: Kai Germaschewski (
Date: Wed Oct 16 2002 - 11:43:57 EST

On Wed, 16 Oct 2002, Matthew Wilcox wrote:

> If you compile the kernel with -ffunction-sections, each function gets
> put in a section .text.function_name. This collides with our current use
> of .text.init. So here's a patch which converts x86 to use .init.text
> instead.
> I've tested it on x86 and it still frees 120k of ram, so it seems to work.
> Other architectures will need to change their appropriately,
> and may need other changes (arm, m68k seem to use .text.init verbatim).

Just in case anybody feels bored, maybe someone wants to come up with a
include/asm-generic/ (or a better name) which has the common
part of all the arch's - so we could make such changes like
you're proposing at one place in the future.

Since all get preprocessed by the C preprocessor, putting
an "#include <asm-generic/>" in there should be easy enough
instead of all the current duplication.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:29 EST