[lkml]   [2002]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Allow compilation with -ffunction-sections
    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

     \ /
      Last update: 2005-03-22 13:30    [W:0.020 / U:6.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site