lkml.org 
[lkml]   [2006]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Use ld's garbage collection feature
From
Date
On Sun, 2006-06-04 at 21:31 -0300, Marcelo Tosatti wrote:
> - Do not discard symbols referenced by modules (via KEEP directive
> from linker script).

I think we should keep _all_ symbols which are exported, except perhaps
if some _extra_ config option hidden behing CONFIG_EMBEDDED is set. It
isn't acceptable to break the case of modules which you build only later
or out-of-tree.

I also want to play with '-fwhole-program --combine'. There's currently
a compiler bug with --combine getting on my tits, but if you #include
the whole of fs/jffs2/*.c or fs/ext3/*.c from one file and build that
with -fwhole-program, you also see a fair amount of benefit.

That would also render a certain amount of the gc-sections improvements
obsolete, although we can't use -fwhole-program in core code; only 'leaf
object' like drivers and filesystems so I think gc-sections is still
going to be a win.

--
dwmw2

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

\
 
 \ /
  Last update: 2006-06-05 10:25    [W:0.103 / U:0.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site