]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: LD_DEAD_CODE_DATA_ELIMINATION no -ffunction-sections/-fdata-sections for...
authorNicholas Piggin <npiggin@gmail.com>
Wed, 9 May 2018 12:59:59 +0000 (22:59 +1000)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 17 May 2018 13:45:00 +0000 (22:45 +0900)
commitb3b30610ec4a0f6936a2e703a6f139387b47c2b9
treed5a9dac5ce28074424da701139fe0d6e0dc853a3
parent87a279a04513b6e3eb93a37588f143a0c2805f45
kbuild: LD_DEAD_CODE_DATA_ELIMINATION no -ffunction-sections/-fdata-sections for module build

Modules do not tend to cope with -ffunction-sections, even though they
do not link with -gc-sections. It may be possible for unused symbols to
be trimmed from modules, but in general that would take much more work
in architecture module linker scripts.

For now, enable these only for kernel build.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile