]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
sh: Fix up some section alignments in linker script.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 9 Oct 2007 06:20:53 +0000 (15:20 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 9 Oct 2007 06:20:53 +0000 (15:20 +0900)
With the PERCPU() macro introduction .data.cacheline_aligned was
inhereting PAGE_SIZE alignment, fix that up for L1_CACHE_BYTES
again. Likewise, the initramfs section wants PAGE_SIZE alignment.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/vmlinux.lds.S

index 84a203b8573dab7db33ab817229d34b5998697a4..3d16d6ef47e1f31cdadefbb836cf66baff97df87 100644 (file)
@@ -62,6 +62,8 @@ SECTIONS
   __nosave_end = .;
 
   PERCPU(PAGE_SIZE)
+
+  . = ALIGN(L1_CACHE_BYTES);
   .data.cacheline_aligned : { *(.data.cacheline_aligned) }
 
   _edata = .;                  /* End of data section */
@@ -90,6 +92,8 @@ SECTIONS
   SECURITY_INIT
 
 #ifdef CONFIG_BLK_DEV_INITRD
+  . = ALIGN(PAGE_SIZE);
+
   __initramfs_start = .;
   .init.ramfs : { *(.init.ramfs) }
   __initramfs_end = .;