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]
Date:	Thu, 23 Apr 2009 16:48:52 -0400 (EDT)
From:	Tim Abbott <tabbott@....EDU>
To:	Linus Torvalds <torvalds@...ux-foundation.org>
cc:	Linux kernel mailing list <linux-kernel@...r.kernel.org>,
	Anders Kaseorg <andersk@....edu>,
	Waseem Daher <wdaher@....edu>,
	Denys Vlasenko <vda.linux@...glemail.com>,
	Rusty Russell <rusty@...tcorp.com.au>,
	Andi Kleen <andi@...stfloor.org>,
	"H. Peter Anvin" <hpa@...or.com>,
	Stephen Rothwell <sfr@...b.auug.org.au>,
	Jeff Arnold <jbarnold@....edu>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Jon Masters <jonathan@...masters.org>,
	Masami Hiramatsu <mhiramat@...hat.com>,
	"Theodore Ts'o" <tytso@....edu>,
	Nikanth Karthikesan <knikanth@...e.de>,
	Arjan van de Ven <arjan@...radead.org>,
	Paul Mundt <lethal@...ux-sh.org>,
	Américo Wang <xiyou.wangcong@...il.com>
Subject: [PATCH v3 0/3] Add support for compiling with -ffunction-sections
 -fdata-sections

On Mon, 20 Apr 2009, Linus Torvalds wrote:

> I'd be ok with merging it, but I haven't really gotten a strong feeling 
> that anybody is going to enable it or use it.

Linus,

Would you be willing to merge the first 3 patches in this patch series at 
this point?  I'm resending these patches to resolve some conflicts that 
was recently introduced.

To summarize the discussion, there are three uses for this code that have 
significant interest.

One is decreasing the kernel size.  Denys Vlasenko has numbers that using 
the linker's --gc-sections option (for which these patches are a 
prerequisite) saves 10% of the kernel size when CONFIG_MODULES=n, and 1% 
when CONFIG_MODULES=y.  Paul Mundt thinks many embedded users would use 
this if it were available.

A related use is cleaning up a lot of ifdefs that exist only to decrease 
the kernel size.  Several developers commented favorably on the direction 
of using section garbage collection for dead code removal.

Finally, Ksplice depends on the option added by this patch series.

The first 3 patches in this patch series fix problems associated with 
using -ffunction-sections.  As there are some architectures currently 
using -ffunction-sections, these should ideally be merged now, especially 
the first patch which involves scattered changes.

	-Tim Abbott
--
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