From: Alan Modra <amodra@gmail.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Andi Kleen <andi@firstfloor.org>,
mmarek@suse.cz, Cary Coutant <ccoutant@google.com>
Subject: Re: [RFC] kbuild: drop use of "ld -r" for intermediate links of vmlinux
Date: Wed, 19 Feb 2014 01:28:56 +1030 [thread overview]
Message-ID: <20140218145856.GZ3386@bubble.grove.modra.org> (raw)
In-Reply-To: <20140216203724.GA19216@ravnborg.org>
On Sun, Feb 16, 2014 at 09:37:24PM +0100, Sam Ravnborg wrote:
> The trick used is that for each directory a linker script is
> generated that name all the file to be linked - and for
> sub-directories this is just the linker script for that directory.
>
> The file continue to be named "built-in.o" but it is really a linker script.
You'll need binutils newer than 2012-06-25
https://sourceware.org/ml/binutils/2012-06/msg00201.html
> I recall the idea is from someone else - but have long lost memory of
> from where I saw it.
I think it might have been my idea originally, implemented by Stephen
Rothwell.
Another possibility is to use thin archives to package up the objects.
Thin archives are like normal archives except they just contain paths
to the objects, not the object contents. Paths are flattened when
adding one thin archive to another. I think Stephen may have tried
that idea too.
--
Alan Modra
Australia Development Lab, IBM
next prev parent reply other threads:[~2014-02-18 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-16 20:37 [RFC] kbuild: drop use of "ld -r" for intermediate links of vmlinux Sam Ravnborg
2014-02-18 14:58 ` Alan Modra [this message]
2014-02-18 21:48 ` Sam Ravnborg
2014-02-19 1:01 ` Alan Modra
2014-02-20 17:02 ` Sam Ravnborg
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=20140218145856.GZ3386@bubble.grove.modra.org \
--to=amodra@gmail.com \
--cc=andi@firstfloor.org \
--cc=ccoutant@google.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--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