lkml.org 
[lkml]   [2020]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2020-02-06 17:13    [W:0.670 / U:3.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site