sh: Fix up some section alignments in linker script.
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>
This commit is contained in:
@@ -62,6 +62,8 @@ SECTIONS
|
|||||||
__nosave_end = .;
|
__nosave_end = .;
|
||||||
|
|
||||||
PERCPU(PAGE_SIZE)
|
PERCPU(PAGE_SIZE)
|
||||||
|
|
||||||
|
. = ALIGN(L1_CACHE_BYTES);
|
||||||
.data.cacheline_aligned : { *(.data.cacheline_aligned) }
|
.data.cacheline_aligned : { *(.data.cacheline_aligned) }
|
||||||
|
|
||||||
_edata = .; /* End of data section */
|
_edata = .; /* End of data section */
|
||||||
@@ -90,6 +92,8 @@ SECTIONS
|
|||||||
SECURITY_INIT
|
SECURITY_INIT
|
||||||
|
|
||||||
#ifdef CONFIG_BLK_DEV_INITRD
|
#ifdef CONFIG_BLK_DEV_INITRD
|
||||||
|
. = ALIGN(PAGE_SIZE);
|
||||||
|
|
||||||
__initramfs_start = .;
|
__initramfs_start = .;
|
||||||
.init.ramfs : { *(.init.ramfs) }
|
.init.ramfs : { *(.init.ramfs) }
|
||||||
__initramfs_end = .;
|
__initramfs_end = .;
|
||||||
|
Reference in New Issue
Block a user