Re: [PATCH 2/7] x86: Add an option to compile with -ffunction-sections -fdata-sections

Anders Kaseorg
2009-02-04T20:51:12Z

On Wed, 4 Feb 2009, Rusty Russell wrote:
> Ah, OK, this explanation should probably be in a paragraph in the Kconfig
> help message, rather than hiding on lkml.

Sure.

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index c6a2674..3412706 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -602,6 +602,11 @@ config FUNCTION_DATA_SECTIONS
If you say Y here the compiler will give each function
and data structure its own ELF section.

+ This option conflicts with CONFIG_FUNCTION_TRACER, which
+ enables profiling code generation, because current GCC does
+ not support compiling with -ffunction-sections -pg (see
+ <http://gcc.gnu.org/ml/gcc-help/2008-11/msg00128.html>).
+
If unsure, say N.

config BOOT_PRINTK_DELAY