Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1329551 > unrolled thread
| Started by | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| First post | 2016-02-08 21:50 +0100 |
| Last post | 2016-02-10 00:40 +0100 |
| Articles | 8 — 5 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-08 21:50 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Rusty Russell <rusty@rustcorp.com.au> - 2016-02-09 05:00 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-09 05:40 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Sam Ravnborg <sam@ravnborg.org> - 2016-02-09 12:50 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Christoph Hellwig <hch@infradead.org> - 2016-02-09 14:30 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-02-09 14:40 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-02-09 18:10 +0100
Re: [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS Rusty Russell <rusty@rustcorp.com.au> - 2016-02-10 00:40 +0100
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-02-08 21:50 +0100 |
| Subject | [PATCH 6/6] kconfig option for TRIM_UNUSED_EXPSYMS |
| Message-ID | <r00UW-1XR-33@gated-at.bofh.it> |
The config option to enable it all. Signed-off-by: Nicolas Pitre <nico@linaro.org> --- init/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 22320804fb..893c4979a9 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1990,6 +1990,22 @@ config MODULE_COMPRESS_XZ endchoice +config TRIM_UNUSED_EXPSYMS + bool "Trim unused exported symbols" + depends on MODULES && !UNUSED_SYMBOLS + help + The kernel and some modules make many symbols available for + other modules to use via EXPORT_SYMBOL() and variants. Depending + on the set of modules being selected in your kernel configuration, + many of those exported symbols might never be used. + + This option allows for unused exported symbols to be dropped from + the build. In turn, this provides the compiler more opportunities + (especially when using LTO) for optimizing the code and reducing + binary size. This might have some security advantages as well. + + If unsure say N. + endif # MODULES config MODULES_TREE_LOOKUP -- 2.5.0
[toc] | [next] | [standalone]
| From | Rusty Russell <rusty@rustcorp.com.au> |
|---|---|
| Date | 2016-02-09 05:00 +0100 |
| Message-ID | <r07D4-6Ju-5@gated-at.bofh.it> |
| In reply to | #1329551 |
Nicolas Pitre <nicolas.pitre@linaro.org> writes: > The config option to enable it all. > > Signed-off-by: Nicolas Pitre <nico@linaro.org> Nice series! In case you need it, here's my Ack. Despite the overlap with modules, it's all build trickery, so best via Sam's tree. Acked-by: Rusty Russell <rusty@rustcorp.com.au> Thanks, Rusty.
[toc] | [prev] | [next] | [standalone]
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-02-09 05:40 +0100 |
| Message-ID | <r08fM-7if-1@gated-at.bofh.it> |
| In reply to | #1329887 |
On Tue, 9 Feb 2016, Rusty Russell wrote: > Nicolas Pitre <nicolas.pitre@linaro.org> writes: > > The config option to enable it all. > > > > Signed-off-by: Nicolas Pitre <nico@linaro.org> > > Nice series! In case you need it, here's my Ack. Despite the overlap > with modules, it's all build trickery, so best via Sam's tree. > > Acked-by: Rusty Russell <rusty@rustcorp.com.au> Thanks Nicolas
[toc] | [prev] | [next] | [standalone]
| From | Sam Ravnborg <sam@ravnborg.org> |
|---|---|
| Date | 2016-02-09 12:50 +0100 |
| Message-ID | <r0eXU-3rF-11@gated-at.bofh.it> |
| In reply to | #1329887 |
> > so best via Sam's tree. That was some years ago ;-) Sam
[toc] | [prev] | [next] | [standalone]
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Date | 2016-02-09 14:30 +0100 |
| Message-ID | <r0gwG-4Ai-33@gated-at.bofh.it> |
| In reply to | #1329551 |
On Mon, Feb 08, 2016 at 03:28:35PM -0500, Nicolas Pitre wrote: > The config option to enable it all. Just enable it by default..
[toc] | [prev] | [next] | [standalone]
| From | "Austin S. Hemmelgarn" <ahferroin7@gmail.com> |
|---|---|
| Date | 2016-02-09 14:40 +0100 |
| Message-ID | <r0gGl-4Dt-7@gated-at.bofh.it> |
| In reply to | #1330231 |
On 2016-02-09 08:28, Christoph Hellwig wrote: > On Mon, Feb 08, 2016 at 03:28:35PM -0500, Nicolas Pitre wrote: >> The config option to enable it all. > > Just enable it by default.. > I doubt we care too much about third party modules, but enabling this by default will likely cause at least some of them to stop working. At the very least, we need the config option, even if it's enabled by default.
[toc] | [prev] | [next] | [standalone]
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-02-09 18:10 +0100 |
| Message-ID | <r0jXC-76q-43@gated-at.bofh.it> |
| In reply to | #1330231 |
On Tue, 9 Feb 2016, Christoph Hellwig wrote: > On Mon, Feb 08, 2016 at 03:28:35PM -0500, Nicolas Pitre wrote: > > The config option to enable it all. > > Just enable it by default.. :-) Viro took the opposite view with this patch: http://lkml.org/lkml/2016/2/3/1068 where he's ensuring that no exports are dropped, even if obviously they're not used (otherwise some complaints would have come about). So I'm not sure if having this turned on by default is a good thing. But I don't mind being convinced otherwise. Nicolas
[toc] | [prev] | [next] | [standalone]
| From | Rusty Russell <rusty@rustcorp.com.au> |
|---|---|
| Date | 2016-02-10 00:40 +0100 |
| Message-ID | <r0q2Z-2zi-5@gated-at.bofh.it> |
| In reply to | #1330491 |
Nicolas Pitre <nicolas.pitre@linaro.org> writes: > On Tue, 9 Feb 2016, Christoph Hellwig wrote: > >> On Mon, Feb 08, 2016 at 03:28:35PM -0500, Nicolas Pitre wrote: >> > The config option to enable it all. >> >> Just enable it by default.. > > :-) > > Viro took the opposite view with this patch: > > http://lkml.org/lkml/2016/2/3/1068 > > where he's ensuring that no exports are dropped, even if obviously > they're not used (otherwise some complaints would have come about). So > I'm not sure if having this turned on by default is a good thing. > > But I don't mind being convinced otherwise. People do build out-of-tree modules. Dropping support for that would simplify our lives, but seems fairly controversial :) Cheers, Rusty.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web