From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pasmtpa.tele.dk ([80.160.77.114]:40883 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809AbXEXUNo (ORCPT ); Thu, 24 May 2007 16:13:44 -0400 Date: Thu, 24 May 2007 22:14:44 +0200 From: Sam Ravnborg Subject: [PATCH/RFC 4/5] asm-generic: add INITRAMFS to vmlinux.lds.h Message-ID: <20070524201444.GF1109@uranus.ravnborg.org> References: <20070524200440.GA1109@uranus.ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070524200440.GA1109@uranus.ravnborg.org> Sender: linux-arch-owner@vger.kernel.org To: David Miller , linux-arch@vger.kernel.org, sparclinux@vger.kernel.org, LKML List-ID: Add the definition of initramfs to vmlinux.lds.h This simplifies arch lds script a bit. Signed-off-by: Sam Ravnborg --- Is these 8 lines really worth it. I think yes - but no less than this. Sam include/asm-generic/vmlinux.lds.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 5388c41..0e3d2eb 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -140,6 +140,19 @@ /* for backward compatibility */ #define RODATA RO_DATA(4096) +/* INITRAMFS is used to hold the filesystem used during early boot. */ +#ifdef CONFIG_BLK_DEV_INITRD +#define INITRAMFS(align) \ + . = ALIGN((align)); \ + .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { \ + VMLINUX_SYMBOL(__initramfs_start) = .; \ + *(.init.ramfs) \ + VMLINUX_SYMBOL(__initramfs_end) = .; \ + } +#else +#define INITRAMFS(align) +#endif + #define SECURITY_INIT \ .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \ VMLINUX_SYMBOL(__security_initcall_start) = .; \ -- 1.5.1.rc3.20.gaa453 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Date: Thu, 24 May 2007 20:14:44 +0000 Subject: [PATCH/RFC 4/5] asm-generic: add INITRAMFS to vmlinux.lds.h Message-Id: <20070524201444.GF1109@uranus.ravnborg.org> List-Id: References: <20070524200440.GA1109@uranus.ravnborg.org> In-Reply-To: <20070524200440.GA1109@uranus.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Miller , linux-arch@vger.kernel.org, sparclinux@vger.kernel.org, LKML Add the definition of initramfs to vmlinux.lds.h This simplifies arch lds script a bit. Signed-off-by: Sam Ravnborg --- Is these 8 lines really worth it. I think yes - but no less than this. Sam include/asm-generic/vmlinux.lds.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 5388c41..0e3d2eb 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -140,6 +140,19 @@ /* for backward compatibility */ #define RODATA RO_DATA(4096) +/* INITRAMFS is used to hold the filesystem used during early boot. */ +#ifdef CONFIG_BLK_DEV_INITRD +#define INITRAMFS(align) \ + . = ALIGN((align)); \ + .init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) { \ + VMLINUX_SYMBOL(__initramfs_start) = .; \ + *(.init.ramfs) \ + VMLINUX_SYMBOL(__initramfs_end) = .; \ + } +#else +#define INITRAMFS(align) +#endif + #define SECURITY_INIT \ .security_initcall.init : AT(ADDR(.security_initcall.init) - LOAD_OFFSET) { \ VMLINUX_SYMBOL(__security_initcall_start) = .; \ -- 1.5.1.rc3.20.gaa453