From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8583 invoked by alias); 17 Aug 2006 01:20:46 -0000 Received: (qmail 8570 invoked by uid 22791); 17 Aug 2006 01:20:45 -0000 X-Spam-Check-By: sourceware.org Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Aug 2006 01:20:43 +0000 Received: from grove.modra.org ([60.226.255.233]) by omta05sl.mx.bigpond.com with ESMTP id <20060817012039.TSTK11832.omta05sl.mx.bigpond.com@grove.modra.org>; Thu, 17 Aug 2006 01:20:39 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id 542521ECF5D; Thu, 17 Aug 2006 10:50:39 +0930 (CST) Date: Thu, 17 Aug 2006 01:54:00 -0000 From: Alan Modra To: "H. J. Lu" Cc: binutils@sources.redhat.com Subject: Re: PATCH: The current linker failed to generate working Linux kernel Message-ID: <20060817012039.GA9128@bubble.grove.modra.org> Mail-Followup-To: "H. J. Lu" , binutils@sources.redhat.com References: <20060816011042.GA14198@lucon.org> <20060816083017.GA7693@bubble.grove.modra.org> <20060816171612.GA20137@lucon.org> <20060816182635.GA20609@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060816182635.GA20609@lucon.org> User-Agent: Mutt/1.4i X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00190.txt.bz2 On Wed, Aug 16, 2006 at 11:26:35AM -0700, H. J. Lu wrote: > PR ld/3052 > * ldlang.c (lang_size_sections_1): Don't change lma unless the > current vma overlaps the previous section. Not OK. The main reason I added this code was to make using overlays simpler. See http://sourceware.org/ml/binutils/2006-07/msg00314.html Your patch means that all loaded sections after an overlay would again need to have their lma specified, which is a pain. I think the new default of keeping the lma to vma relationship the same as previous sections is a much better default than setting lma equal to vma. (Of course, scripts that never specify lma will be unaffected since the "previous section" will have lma equal to vma.) The new default should allow many ld scripts that specify lmas to be simplified. Also, for orphan sections we've kept lma-vma the same as previous sections since 2002-12-05. -- Alan Modra IBM OzLabs - Linux Technology Centre