Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756197AbaBRO7K (ORCPT ); Tue, 18 Feb 2014 09:59:10 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:54983 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755330AbaBRO7E (ORCPT ); Tue, 18 Feb 2014 09:59:04 -0500 Date: Wed, 19 Feb 2014 01:28:56 +1030 From: Alan Modra To: Sam Ravnborg Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Kleen , mmarek@suse.cz, Cary Coutant Subject: Re: [RFC] kbuild: drop use of "ld -r" for intermediate links of vmlinux Message-ID: <20140218145856.GZ3386@bubble.grove.modra.org> References: <20140216203724.GA19216@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140216203724.GA19216@ravnborg.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/