From: Sam Ravnborg <sam@ravnborg.org>
To: Tejun Heo <tj@kernel.org>
Cc: "linux-arch@vger.kernel.org" <linux-arch@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Michal Simek <monstr@monstr.eu>,
microblaze-uclinux@itee.uq.edu.au,
Paul Mundt <lethal@linux-sh.org>, Tony Luck <tony.luck@intel.com>,
Mike Frysinger <vapier@gentoo.org>
Subject: Re: [PATCH 2/2] linker script: unify usage of discard definition
Date: Fri, 17 Jul 2009 23:13:12 +0200 [thread overview]
Message-ID: <20090717211312.GD7080@merkur.ravnborg.org> (raw)
In-Reply-To: <4A546670.6070701@kernel.org>
On Wed, Jul 08, 2009 at 06:27:12PM +0900, Tejun Heo wrote:
> Discarded sections in different archs share some commonality but have
> considerable differences. This led to linker script for each arch
> implementing its own /DISCARD/ definition, which makes maintaining
> tedious and adding new entries error-prone.
>
> This patch makes all linker scripts to move discard definitions to the
> end of the linker script and use the common DISCARDS macro. As ld
> uses the first matching section definition, archs can include default
> discarded sections by including them earlier in the linker script.
>
> ia64 is notable because it first throws away some ia64 specific
> subsections and then include the rest of the sections into the final
> image, so those sections must be discarded before the inclusion.
>
> defconfig compile tested for x86, x86-64, powerpc, powerpc64, ia64,
> alpha, sparc, sparc64 and s390. Michal Simek tested microblaze.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Acked-by: Paul Mundt <lethal@linux-sh.org>
> Acked-by: Mike Frysinger <vapier@gentoo.org>
> Tested-by: Michal Simek <monstr@monstr.eu>
> Cc: linux-arch@vger.kernel.org
> Cc: Michal Simek <monstr@monstr.eu>
> Cc: microblaze-uclinux@itee.uq.edu.au
> Cc: Sam Ravnborg <sam@ravnborg.org>
> Cc: Tony Luck <tony.luck@intel.com>
Patch looks good - thanks!
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Sam
next prev parent reply other threads:[~2009-07-17 21:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 9:26 [PATCH percpu 1/2] microblaze: include EXIT_TEXT to _stext Tejun Heo
2009-07-08 9:26 ` Tejun Heo
2009-07-08 9:27 ` [PATCH 2/2] linker script: unify usage of discard definition Tejun Heo
2009-07-08 9:27 ` Tejun Heo
2009-07-17 21:13 ` Sam Ravnborg [this message]
2009-07-17 21:13 ` Sam Ravnborg
2009-07-08 10:37 ` [PATCH percpu 1/2] microblaze: include EXIT_TEXT to _stext Michal Simek
2009-07-09 2:28 ` Tejun Heo
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=20090717211312.GD7080@merkur.ravnborg.org \
--to=sam@ravnborg.org \
--cc=lethal@linux-sh.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=microblaze-uclinux@itee.uq.edu.au \
--cc=monstr@monstr.eu \
--cc=tj@kernel.org \
--cc=tony.luck@intel.com \
--cc=vapier@gentoo.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;
as well as URLs for NNTP newsgroup(s).