From: Sergey Vlasov Date: Mon, 26 Jun 2006 11:59:32 +0000 (+0200) Subject: [PATCH] x86_64: Do not use -ffunction-sections for modules X-Git-Tag: v2.6.18-rc1~612^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409f89e0efcfea1a8b25f9c4a050c0cf1f1cb87c;p=pandora-kernel.git [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 Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed