mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Marcelo Tosatti <marcelo@kvack.org>
Cc: linux-kernel@vger.kernel.org, Arjan van de Ven <arjan@linux.intel.com>
Subject: Re: [PATCH] Use ld's garbage collection feature
Date: Mon, 05 Jun 2006 09:22:43 +0100	[thread overview]
Message-ID: <1149495763.30024.36.camel@pmac.infradead.org> (raw)
In-Reply-To: <20060605003152.GA1364@dmt>

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


  parent reply	other threads:[~2006-06-05  8:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-05  0:31 Marcelo Tosatti
2006-06-05  2:51 ` Dmitry Torokhov
2006-06-05 14:35   ` Marcelo Tosatti
2006-06-05  8:22 ` David Woodhouse [this message]
2006-06-05 10:03 ` David Woodhouse
2006-06-05 14:36   ` Marcelo Tosatti
2006-06-05 14:48     ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1149495763.30024.36.camel@pmac.infradead.org \
    --to=dwmw2@infradead.org \
    --cc=arjan@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®