]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: lto: merge module sections
authorSami Tolvanen <samitolvanen@google.com>
Fri, 11 Dec 2020 18:46:22 +0000 (10:46 -0800)
committerKees Cook <keescook@chromium.org>
Thu, 14 Jan 2021 16:21:08 +0000 (08:21 -0800)
commitafcbda67ba372d37da4e5f7bedb978b1a3fe2400
tree479759a1b7e3330906346ec9f4b25b2a79d47c5d
parentc426f95192d3fff6d5252bc8c134d21760f48d37
kbuild: lto: merge module sections

LLD always splits sections with LTO, which increases module sizes. This
change adds linker script rules to merge the split sections in the final
module.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201211184633.3213045-6-samitolvanen@google.com
scripts/module.lds.S