Re: [PATCH] vmlinux.lds.h: lower init ramfs alignment to 4

From: Mike Frysinger
Date: Sun Oct 17 2010 - 04:20:28 EST


Andrew: could you pick this up ? no feedback after this last version
was posted ...
-mike

On Sat, Jun 12, 2010 at 23:33, Mike Frysinger wrote:
> The new init ramfs format (cpio based) requires an alignment of 4 (per the
> documentation and per the source files themselves). ÂAs for compressed
> sources, the decompressors can all deal with unaligned buffers.
>
> The cpio source is also found in the __init sections of the kernel, so
> once they are read and expanded into a tmpfs, the source is freed. ÂThat
> means there is no need to force page alignment here either.
>
> This has been used on Blackfin systems for many releases without issue.
>
> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
> ---
> Âinclude/asm-generic/vmlinux.lds.h | Â Â2 +-
> Â1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
> index 48c5299..14a01b6 100644
> --- a/include/asm-generic/vmlinux.lds.h
> +++ b/include/asm-generic/vmlinux.lds.h
> @@ -620,7 +620,7 @@
>
> Â#ifdef CONFIG_BLK_DEV_INITRD
> Â#define INIT_RAM_FS Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â\
> - Â Â Â . = ALIGN(PAGE_SIZE); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â \
> + Â Â Â . = ALIGN(4); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â \
> Â Â Â ÂVMLINUX_SYMBOL(__initramfs_start) = .; Â Â Â Â Â Â Â Â Â Â Â Â Â\
> Â Â Â Â*(.init.ramfs) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â\
> Â Â Â ÂVMLINUX_SYMBOL(__initramfs_end) = .;
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
> Please read the FAQ at Âhttp://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/