[PATCH 8/10] powerpc: Set entry point and text address in linker script

Paul Mackerras paulus at samba.org
Sat Oct 15 16:48:46 EST 2005


Michael Ellerman writes:

> Currently we set the kernel entry point and the address of the text
> section in the Makefile, using CONFIG_KERNEL_START.
> 
> But we've already got <asm/page.h> in the linker script, so we can just
> use KERNELBASE directly. That means if we ever change KERNELBASE there's
> one less place to change it.

Well yes, on ppc64 we have asm/page.h, but not on ppc32, not yet
anyway.  We need to get a merged page.h.

On ppc32, CONFIG_KERNEL_START affects both PAGE_OFFSET and KERNELBASE,
whereas I think you're talking about changing only KERNELBASE, not
PAGE_OFFSET.

> Apart from linux_banner, there are zero differences from "readelf -a vmlinux"
> before and after this patch.

Did you test any ppc32 configs?

Paul.



More information about the Linuxppc64-dev mailing list