Re: [PATCH] Clarify CONFIG_DEBUG_INFO's bloaty nature

From: David Rientjes
Date: Mon Feb 03 2014 - 17:00:14 EST


On Mon, 3 Feb 2014, Borislav Petkov wrote:

> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index dbf94a7d25a8..9095c2078095 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -126,7 +126,11 @@ config DEBUG_INFO
> This adds debug symbols to the kernel and modules (gcc -g), and
> is needed if you intend to use kernel crashdump or binary object
> tools like crash, kgdb, LKCD, gdb, etc on the kernel.
> - Say Y here only if you plan to debug the kernel.
> +
> + If you only want to have resolved symbols in kernel traces and
> + are not going to need support for those tools above, you don't need
> + to enable this as it is a huge bloat and build slowdown;

How do you define "huge bloat" if the size of vmlinux doesn't increase?
Would some people consider that to be acceptable but now mysteriously
confused because we don't know what "huge bloat" you're referring to?

It also begs the question about the meaning of DEBUG_INFO_REDUCED and this
comment doesn't even allow us to see that it's an option.

So this doesn't look good.

> + enable CONFIG_KALLSYMS instead.
>
> If unsure, say N.
>
--
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/