]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86_64: Do not use -ffunction-sections for modules
authorSergey Vlasov <vsu@altlinux.ru>
Mon, 26 Jun 2006 11:59:32 +0000 (13:59 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:21 +0000 (10:48 -0700)
commit409f89e0efcfea1a8b25f9c4a050c0cf1f1cb87c
tree21ce71ccd66e34c6a9be99da0703ba808b773eca
parent899ced0dd9457b9c349663ca4cb4ec09167728a6
[PATCH] x86_64: Do not use -ffunction-sections for modules

Currently CONFIG_REORDER uses -ffunction-sections for all code;
however, creating a separate section for each function is not useful
for modules and just adds bloat.  Moving this option from CFLAGS to
CFLAGS_KERNEL shrinks module object files (e.g., the module tree for a
kernel built with most drivers as modules shrinked from 54M to 46M),
and decreases the number of sysfs files in /sys/module/*/sections/
directories.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/Makefile