[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1156499546.2984.43.camel@pmac.infradead.org>
Date: Fri, 25 Aug 2006 10:52:26 +0100
From: David Woodhouse <dwmw2@...radead.org>
To: Adrian Bunk <bunk@...sta.de>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] Add __global tag where needed.
On Thu, 2006-08-24 at 23:30 +0200, Adrian Bunk wrote:
> Applying this doesn't seem to make much sense until it's clear whether a
> "build everything except for assembler files at once" approach (that
> needs less globals) or your current "compile only multi-obj at once"
> approach (that requires more globals).
For the kernel itself, I think that building a directory at once is the
way forward. For modules, obviously the scope is more limited.
Either way, I'd like to prevent the unnecessary proliferation of
__global by instrument the link process somehow so that we get a
_warning_ during the final link if there are any global symbols which
aren't actually used. Having said that, --gc-sections will happily drop
them from the vmlinux anyway so I'm not _overly_ concerned by it.
In fact, I think binutils got patched recently so that it can _tell_ us
what sections got dropped by --gc-sections, which would do the job
nicely.
--
dwmw2
-
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