summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-05-17 20:29:03 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-05-18 07:19:05 +0200
commit0e337b42d620ca7c45fe64e64dd71957c56216c9 (patch)
tree70c1248e6fb8889c41b44652846c4acf9e2a7c24 /arch/powerpc/kernel/vmlinux.lds.S
parentpowerpc/ps3: Update ps3_defconfig (diff)
downloadlinux-0e337b42d620ca7c45fe64e64dd71957c56216c9.tar.xz
linux-0e337b42d620ca7c45fe64e64dd71957c56216c9.zip
powerpc: Explicit alignment for .data.cacheline_aligned
I don't think anything guarantees that the objects in data.page_aligned are a multiple of PAGE_SIZE, thus the section may end on any boundary. So the following section, .data.cacheline_aligned needs an explicit alignment. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/vmlinux.lds.S')
-rw-r--r--arch/powerpc/kernel/vmlinux.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index a047a6cfca4d..8ef8a14abc95 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -264,6 +264,7 @@ SECTIONS
*(.data.page_aligned)
}
+ . = ALIGN(L1_CACHE_BYTES);
.data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) {
*(.data.cacheline_aligned)
}