Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kbuild: LD_DEAD_CODE_DATA_ELIMINATION no -ffunction-sections/-fdata-s…
…ections 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 <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
- Loading branch information