Re: [11/12] powerpc: Check prom_init for disallowed sections

2018-10-18 Thread Michael Ellerman
On Mon, 2018-10-15 at 02:49:59 UTC, Benjamin Herrenschmidt wrote: > 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: Benj

[PATCH 11/12] powerpc: Check prom_init for disallowed sections

2018-10-14 Thread Benjamin Herrenschmidt
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 --- arch/powerpc/kernel/prom_init_check.sh | 16 +