lkml.org 
[lkml]   [2009]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/7] Make section names compatible with -ffunction-sections -fdata-sections
> So we `make it possible to build the kernel > with "gcc
> -ffunction-sections -fdata-sections"'. So what? Where is the value in
> that?

The original reason was that it allows the linker to drop unused
functions automatically. That is a good thing by itself -- e.g.
if it was universal we could avoid a lot of #ifdefs. And it
also turned out that standard kernel builds get smaller by it iirc.

-Andi

--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-01-12 22:59    [W:1.469 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site