lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081116074948.GA32670@uranus.ravnborg.org>
Date:	Sun, 16 Nov 2008 08:49:48 +0100
From:	Sam Ravnborg <sam@...nborg.org>
To:	Alexey Dobriyan <adobriyan@...il.com>
Cc:	viro@...IV.linux.org.uk, zippel@...ux-m68k.org,
	linux-kernel@...r.kernel.org
Subject: Re: Immortal CONFIG_DEBUG_INFO=y

On Sun, Nov 16, 2008 at 10:42:01AM +0300, Alexey Dobriyan wrote:
> As known to everybody doing fat builds, banning DEBUG_INFO=y is mandatory,
> otherwise build is slower and takes much more disk space. And to not
> accidently enable it, banning it in kconfig:
> 
> 	@@ -475,7 +475,7 @@ config DEBUG_BUGVERBOSE
> 	 
> 	 config DEBUG_INFO
> 	 	bool "Compile the kernel with debug info"
> 	-	depends on DEBUG_KERNEL
> 	+	depends on DEBUG_KERNEL && DISABLED
> 	 	help
> 	           If you say Y here the resulting kernel image will include
> 	 	  debugging info resulting in a larger kernel image.
> 
> This works pretty well -- allmodconfig generates config without DEBUG_INFO and
> so on, defconfigs also regenerated without it, even if original one in arch/
> has DEBUG_INFO enabled and so on. Trick also works for other options, like,
> KALLSYMS_EXTRA_PASS.
> 
> Except one case:
> 
> 	make ARCH=sh magicpanelr2_defconfig
> 
> DEBUG_INFO survives to .config and resulting build runs with -g.

Because that defconfig does:
CONFIG_SH_KGDB=y

and SH_KGDB does:
	select DEBUG_INFO

Instead of editing the Kconfig file you should use the KCONFIG_ALLCONFIG trick.
See README for usage.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ