[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <nycvar.YSQ.7.76.2002061103360.1559@knanqh.ubzr>
Date: Thu, 6 Feb 2020 11:12:12 -0500 (EST)
From: Nicolas Pitre <nico@...xnic.net>
To: Jessica Yu <jeyu@...nel.org>
cc: Quentin Perret <qperret@...gle.com>, masahiroy@...nel.org,
linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org,
maennich@...gle.com, kernel-team@...roid.com
Subject: Re: [PATCH v2] kbuild: allow symbol whitelisting with
TRIM_UNUSED_KSYMS
On Thu, 6 Feb 2020, Jessica Yu wrote:
> Hm, I thought TRIM_UNUSED_KSYMS just *unexports* unused symbols, no?
> "Trimmed from the build" sounds like the symbols are not compiled in
> or dropped completely. Please correct me if I misunderstood.
If they are unexposed, then it doesn't make much sense to keep them
around wasting space. So yes, the compiler is free to optimize away the
unused code at that point.
Please see the first part of the following article where effective
kernel size reduction is is achieved with this feature:
https://lwn.net/Articles/746780/
Nicolas
Powered by blists - more mailing lists