]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Check prom_init for disallowed sections
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Oct 2018 02:49:59 +0000 (13:49 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 18 Oct 2018 13:56:17 +0000 (00:56 +1100)
commit2a85e73e49e022ed524229ce474f11b6de91eeb3
treefd8503757d401435b6c6b6c182091129b477123e
parentfbb6478a1ddf4ad6e354ad50db963b6df3867390
powerpc: Check prom_init for disallowed sections

prom_init.c must not modify the kernel image outside
of the .bss.prominit section. Thus make sure that
prom_init.o doesn't have anything in any of these:

.data
.bss
.init.data

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init_check.sh