sparc64: fix alignment bug in linker definition script
commit4096b46f01a362fe2cc83f6be25cc7be6bce2ab7
authorSam Ravnborg <sam@ravnborg.org>
Tue, 29 May 2007 19:29:00 +0000 (29 21:29 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 29 May 2007 19:29:00 +0000 (29 21:29 +0200)
tree7738ca7a7962dc88cc5b9e6dc3b789e73504a7c8
parentc420bc9f09a0926b708c3edb27eacba434a4f4ba
sparc64: fix alignment bug in linker definition script

The RO_DATA section were hardcoded to a specific
alignment in include/asm-generic/vmlinux.h.
But for sparc64 this did not match the PAGE_SIZE.

Introduce a new section definition named:
RO_DATA that takes actual alignment as parameter.
RODATA are provided for backward compatibility.

On top of this avoid hardcoding alignment for
sparc64 in reset of the script
Fix is build-tested on sparc64 + x86_64.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sparc64/kernel/vmlinux.lds.S
include/asm-generic/vmlinux.lds.h