From: Tim Abbott <tabbott@ksplice.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>,
Nelson Elhage <nelhage@ksplice.com>
Subject: Re: [PATCH v4 2/2] arm: Clean up linker script using new linker script macros.
Date: Mon, 12 Oct 2009 10:41:10 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.1.10.0910121036130.6253@dr-wily.mit.edu> (raw)
In-Reply-To: <1254515567-27110-2-git-send-email-tabbott@ksplice.com>
Can someone with an arm machine test this patch? I'd really appreciate
it.
-Tim Abbott
On Fri, 2 Oct 2009, Tim Abbott wrote:
> From: Nelson Elhage <nelhage@ksplice.com>
>
> This patch is mostly a straightforward translation. The primary side
> effect to the resulting vmlinux should be to increase the alignment on
> the initramfs to the standard PAGE_SIZE from 32 bytes.
>
> Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
> Signed-off-by: Tim Abbott <tabbott@ksplice.com>
> Acked-by: Sam Ravnborg <sam@ravnborg.org>
> ---
> arch/arm/kernel/vmlinux.lds.S | 77 ++++++++++++----------------------------
> 1 files changed, 23 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
> index 0902f80..71151bd 100644
> --- a/arch/arm/kernel/vmlinux.lds.S
> +++ b/arch/arm/kernel/vmlinux.lds.S
> @@ -40,43 +40,31 @@ SECTIONS
> __tagtable_begin = .;
> *(.taglist.init)
> __tagtable_end = .;
> - . = ALIGN(16);
> - __setup_start = .;
> - *(.init.setup)
> - __setup_end = .;
> +
> + INIT_SETUP(16)
> +
> __early_begin = .;
> *(.early_param.init)
> __early_end = .;
> - __initcall_start = .;
> - INITCALLS
> - __initcall_end = .;
> - __con_initcall_start = .;
> - *(.con_initcall.init)
> - __con_initcall_end = .;
> - __security_initcall_start = .;
> - *(.security_initcall.init)
> - __security_initcall_end = .;
> -#ifdef CONFIG_BLK_DEV_INITRD
> - . = ALIGN(32);
> - __initramfs_start = .;
> - usr/built-in.o(.init.ramfs)
> - __initramfs_end = .;
> -#endif
> - . = ALIGN(PAGE_SIZE);
> - __per_cpu_load = .;
> - __per_cpu_start = .;
> - *(.data.percpu.page_aligned)
> - *(.data.percpu)
> - *(.data.percpu.shared_aligned)
> - __per_cpu_end = .;
> +
> + INIT_CALLS
> + CON_INITCALL
> + SECURITY_INITCALL
> + INIT_RAM_FS
> +
> #ifndef CONFIG_XIP_KERNEL
> __init_begin = _stext;
> INIT_DATA
> - . = ALIGN(PAGE_SIZE);
> - __init_end = .;
> #endif
> }
>
> + PERCPU(PAGE_SIZE)
> +
> +#ifndef CONFIG_XIP_KERNEL
> + . = ALIGN(PAGE_SIZE);
> + __init_end = .;
> +#endif
> +
> /DISCARD/ : { /* Exit code and data */
> EXIT_TEXT
> EXIT_DATA
> @@ -155,7 +143,7 @@ SECTIONS
> * first, the init task union, aligned
> * to an 8192 byte boundary.
> */
> - *(.data.init_task)
> + INIT_TASK_DATA(THREAD_SIZE)
>
> #ifdef CONFIG_XIP_KERNEL
> . = ALIGN(PAGE_SIZE);
> @@ -165,17 +153,8 @@ SECTIONS
> __init_end = .;
> #endif
>
> - . = ALIGN(PAGE_SIZE);
> - __nosave_begin = .;
> - *(.data.nosave)
> - . = ALIGN(PAGE_SIZE);
> - __nosave_end = .;
> -
> - /*
> - * then the cacheline aligned data
> - */
> - . = ALIGN(32);
> - *(.data.cacheline_aligned)
> + NOSAVE_DATA
> + CACHELINE_ALIGNED_DATA(32)
>
> /*
> * The exception fixup table (might need resorting at runtime)
> @@ -254,20 +233,10 @@ SECTIONS
> }
> #endif
>
> - .bss : {
> - __bss_start = .; /* BSS */
> - *(.bss)
> - *(COMMON)
> - __bss_stop = .;
> - _end = .;
> - }
> - /* Stabs debugging sections. */
> - .stab 0 : { *(.stab) }
> - .stabstr 0 : { *(.stabstr) }
> - .stab.excl 0 : { *(.stab.excl) }
> - .stab.exclstr 0 : { *(.stab.exclstr) }
> - .stab.index 0 : { *(.stab.index) }
> - .stab.indexstr 0 : { *(.stab.indexstr) }
> + BSS_SECTION(0, 0, 0)
> + _end = .;
> +
> + STABS_DEBUG
> .comment 0 : { *(.comment) }
> }
>
> --
> 1.6.4.3
>
>
next prev parent reply other threads:[~2009-10-12 14:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-30 21:25 [PATCH v4 0/2] Linker script cleanup patches for arm Tim Abbott
2009-09-30 21:25 ` [PATCH 1/2] arm: convert to use __HEAD and HEAD_TEXT macros Tim Abbott
2009-09-30 21:31 ` Sam Ravnborg
2009-09-30 21:25 ` [PATCH 2/2] arm: Clean up linker script using new linker script macros Tim Abbott
2009-09-30 21:39 ` Sam Ravnborg
2009-10-01 12:56 ` Russell King - ARM Linux
2009-10-02 20:32 ` Tim Abbott
2009-10-02 20:32 ` [PATCH v4 1/2] arm: convert to use __HEAD and HEAD_TEXT macros Tim Abbott
2009-10-02 20:32 ` [PATCH v4 2/2] arm: Clean up linker script using new linker script macros Tim Abbott
2009-10-12 14:41 ` Tim Abbott [this message]
2009-10-13 8:50 ` Uwe Kleine-König
2009-10-13 16:47 ` Tim Abbott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.10.0910121036130.6253@dr-wily.mit.edu \
--to=tabbott@ksplice.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nelhage@ksplice.com \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®