]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kbuild: keep data tables through dead code elimination
authorNicholas Piggin <npiggin@gmail.com>
Wed, 23 Nov 2016 16:41:41 +0000 (03:41 +1100)
committerMichal Marek <mmarek@suse.com>
Tue, 29 Nov 2016 14:58:57 +0000 (15:58 +0100)
commit4b89b7f7aad5742523db801b7107598e5b5a42c8
tree020266a59636b6c1f939ec1f85cd67ba64e60dc0
parent9da2f584b54fa4bf0df4db220cd89b6c7e691c6e
kbuild: keep data tables through dead code elimination

When CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is enabled we must ensure
that we still keep various programatically-accessed tables.

[npiggin: Fold Paul's patches into one, and add a few more tables.
 diff symbol tables of allyesconfig with/without -gc-sections shows up
 lost tables quite easily.]

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
include/asm-generic/vmlinux.lds.h