]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Link warning for orphan sections
authorNicholas Piggin <npiggin@gmail.com>
Thu, 11 May 2017 17:40:40 +0000 (03:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 May 2017 04:59:51 +0000 (14:59 +1000)
commit85788d6508b4295868478b2f28b39b0104394cf2
tree61b7aab91d026e0722f1d347c9931d194cf3aaac
parent242384893e94631e70872239e65b462c2af55c83
powerpc: Link warning for orphan sections

Add --orphan-handling=warn to final link flags. This ensures we can
handle all sections explicitly. This would have caught subtle breakage
such as 4f3aadf0e2a90ab2a058a239d03e6c1f50524d8c at build-time.

Also bring existing orphan sections into the fold:
- .text.hot and .text.unlikely are compiler generated sections.
- .sdata2, .dynsbss, .plt are used by PPC32
- We previously did not specify DWARF_DEBUG or STABS_DEBUG
- DWARF_DEBUG did not include all DWARF sections that can be emitted
- A number of sections are unused and can be discarded.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/kernel/vmlinux.lds.S
include/asm-generic/vmlinux.lds.h