Skip to content

Commit

Permalink
sh: Fix up some section alignments in linker script.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 9, 2007
1 parent 5d9df8e commit 3497337
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/sh/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -90,6 +92,8 @@ SECTIONS
SECURITY_INIT

#ifdef CONFIG_BLK_DEV_INITRD
. = ALIGN(PAGE_SIZE);

__initramfs_start = .;
.init.ramfs : { *(.init.ramfs) }
__initramfs_end = .;
Expand Down

0 comments on commit 3497337

Please sign in to comment.