powerpc: Explicit alignment for .data.cacheline_aligned
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 17 May 2009 18:29:03 +0000 (18:29 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 18 May 2009 05:19:05 +0000 (15:19 +1000)
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>
arch/powerpc/kernel/vmlinux.lds.S

index a047a6cfca4d4c44cece3559e080da76efa7b5d8..8ef8a14abc95b5ccf9bc2ba93e84ba9c881a6729 100644 (file)
@@ -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)
        }