Re: [PATCH] kbuild: merge module sections under CONFIG_LD_DEAD_CODE_DATA_ELIMINATION too

2021-04-07 Thread Masahiro Yamada
On Tue, Apr 6, 2021 at 11:42 PM Alexander Lobakin wrote: > > On Friday, 2 April 2021, 18:09, Sami > Tolvanen wrote: > > > On Fri, Apr 2, 2021 at 5:40 AM Alexander Lobakin aloba...@pm.me wrote: > > > > > When building with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION, > > > -fdata-sections and

Re: [PATCH] kbuild: merge module sections under CONFIG_LD_DEAD_CODE_DATA_ELIMINATION too

2021-04-06 Thread Alexander Lobakin
On Friday, 2 April 2021, 18:09, Sami Tolvanen wrote: > On Fri, Apr 2, 2021 at 5:40 AM Alexander Lobakin aloba...@pm.me wrote: > > > When building with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION, > > -fdata-sections and -ffunction-sections are being enabled by the > > top-level Makefile, and module

Re: [PATCH] kbuild: merge module sections under CONFIG_LD_DEAD_CODE_DATA_ELIMINATION too

2021-04-02 Thread Sami Tolvanen
On Fri, Apr 2, 2021 at 5:40 AM Alexander Lobakin wrote: > > When building with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION, > -fdata-sections and -ffunction-sections are being enabled by the > top-level Makefile, and module section merging is also needed. > Expand the ifdef (and the comment block) to

[PATCH] kbuild: merge module sections under CONFIG_LD_DEAD_CODE_DATA_ELIMINATION too

2021-04-02 Thread Alexander Lobakin
When building with CONFIG_LD_DEAD_CODE_DATA_ELIMINATION, -fdata-sections and -ffunction-sections are being enabled by the top-level Makefile, and module section merging is also needed. Expand the ifdef (and the comment block) to cover that case too. Fixes: 6a3193cdd5e5 ("kbuild: lto: Merge module