FROMLIST: kbuild: fix LD_DEAD_CODE_DATA_ELIMINATION
authorSami Tolvanen <samitolvanen@google.com>
Tue, 13 Feb 2018 21:59:47 +0000 (13:59 -0800)
committerSami Tolvanen <samitolvanen@google.com>
Thu, 26 Apr 2018 23:03:35 +0000 (16:03 -0700)
commit9945e128a0960902c62d5aae50f799328871f6d7
treebc9f677a37b22ff77716afd3a87aceff497e0c54
parent23fb7597e6df2935bbfd0cca5a4c3ad837043aa4
FROMLIST: kbuild: fix LD_DEAD_CODE_DATA_ELIMINATION

Don't remove .head.text or .exitcall.exit when linking with --gc-sections,
and include .init.text.* in .init.text and .init.rodata.* in .init.rodata.

Bug: 62093296
Bug: 67506682
Change-Id: Ia0f9e735d04c2322dcc8bcfc94241f0551b149c4
(am from https://patchwork.kernel.org/patch/10085773/)
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
include/asm-generic/vmlinux.lds.h