]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Set entry point and text address in linker script
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 3 Nov 2005 05:03:06 +0000 (16:03 +1100)
committerMichael Ellerman <michael@ellerman.id.au>
Thu, 3 Nov 2005 05:03:06 +0000 (16:03 +1100)
commitc1b94c37071c801fb5877a4a15eea0c7383bae45
tree63c61be402940f0731d6810b2d1d7372b61a9815
parent2b772fb6f6317a54d8e059489c535b9d370b2ef0
powerpc: Set entry point and text address in linker script

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.

And we can set the entry point with ENTRY().

There are zero differences from "readelf -a vmlinux" with or without this
patch.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
arch/powerpc/Makefile
arch/powerpc/kernel/vmlinux.lds.S