]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Update linker script to properly set physical addresses
authorKumar Gala <galak@kernel.crashing.org>
Tue, 15 Apr 2008 19:52:28 +0000 (05:52 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Apr 2008 21:46:14 +0000 (07:46 +1000)
commit63584868e498a5a7b6a2efa947ee9720df4d1463
tree17dc5ce69cecc5ea61b78d8f71fb7d189e6a8e83
parent7f5135db3d8de96306c08935adb7c13361dd185b
[POWERPC] Update linker script to properly set physical addresses

We can set LOAD_OFFSET and use the AT attribute on sections and the
linker will properly set the physical address of the LOAD program
header for us.

This allows us to know how the PHYSICAL_START the user configured a
kernel with by just looking at the resulting vmlinux ELF.

This is pretty much stolen from how x86 does things in their linker
scripts.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/vmlinux.lds.S
include/asm-powerpc/page.h