]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
kbuild: Fix asm-generic/vmlinux.lds.h for LD_DEAD_CODE_DATA_ELIMINATION
authorNicholas Piggin <npiggin@gmail.com>
Wed, 9 May 2018 12:59:58 +0000 (22:59 +1000)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 17 May 2018 13:45:00 +0000 (22:45 +0900)
commit266ff2a8f51f02b429a987d87634697eb0d01d6a
tree22f39b7763a55e89268cbfd52de94221dfae185a
parent8b1857436baa2b9b6d7330715180aa47a63b15ca
kbuild: Fix asm-generic/vmlinux.lds.h for LD_DEAD_CODE_DATA_ELIMINATION

KEEP more tables, and add the function/data section wildcard to more
section selections.

This is a little ad-hoc at the moment, but kernel code should be moved
to consistently use .text..x (note: double dots) for explicit sections
and all references to it in the linker script can be made with
TEXT_MAIN, and similarly for other sections.

For now, let's see if major architectures move to enabling this option
then we can do some refactoring passes. Otherwise if it remains unused
or superseded by LTO, this may not be required.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/asm-generic/vmlinux.lds.h