Re: [PATCH v3 1/3] Make section names compatible with -ffunction-sections -fdata-sections

From: Paul Mundt
Date: Thu Apr 23 2009 - 20:22:20 EST


On Thu, Apr 23, 2009 at 04:49:32PM -0400, Tim Abbott wrote:
> The purpose of this patch is to make it possible to build the kernel
> with "gcc -ffunction-sections -fdata-sections". This is a key step
> towards being able to compile the kernel using the --gc-sections
> linker option, which can be used to decrease the vmlinux size by
> garbage collecting unused functions. Also, Ksplice's 'run-pre
> matching' process is much simpler if the original kernel was compiled
> with -ffunction-sections and -fdata-sections.
>
[snip]

> Signed-off-by: Tim Abbott <tabbott@xxxxxxx>
> Signed-off-by: Anders Kaseorg <andersk@xxxxxxx>

As this is the only really invasive part of the patch, it would certainly
be good to see this merged early.

Acked-by: Paul Mundt <lethal@xxxxxxxxxxxx>
--
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/