From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32203 invoked by alias); 21 Apr 2007 01:01:35 -0000 Received: (qmail 32187 invoked by uid 22791); 21 Apr 2007 01:01:34 -0000 X-Spam-Check-By: sourceware.org Received: from omta02ps.mx.bigpond.com (HELO omta02ps.mx.bigpond.com) (144.140.83.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 21 Apr 2007 02:01:22 +0100 Received: from oaamta02ps.mx.bigpond.com ([144.136.165.71]) by omta02ps.mx.bigpond.com with ESMTP id <20070421010119.VEAP7838.omta02ps.mx.bigpond.com@oaamta02ps.mx.bigpond.com>; Sat, 21 Apr 2007 01:01:19 +0000 Received: from bubble.grove.modra.org ([144.136.165.71]) by oaamta02ps.mx.bigpond.com with ESMTP id <20070421010119.PVPJ276.oaamta02ps.mx.bigpond.com@bubble.grove.modra.org>; Sat, 21 Apr 2007 01:01:19 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id E8FAA33BDA4; Sat, 21 Apr 2007 10:31:18 +0930 (CST) Date: Sat, 21 Apr 2007 05:01:00 -0000 From: Alan Modra To: Deepen Mantri Cc: binutils@sources.redhat.com Subject: Re: No error for Linker Section Overlapping Message-ID: <20070421010118.GL6840@bubble.grove.modra.org> Mail-Followup-To: Deepen Mantri , binutils@sources.redhat.com References: <20070418035357.GB25113@bubble.grove.modra.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00279.txt.bz2 On Thu, Apr 19, 2007 at 09:12:23PM +0530, Deepen Mantri wrote: > 1. Error prints the LMA addresses instead of VMA addresses when VMAs of > the sections overlap. This might create confusion. VMA == LMA except when using overlays or when assigning LMA in the linker script. I don't think the error message is worth changing. > 2. Also the allocation of the LMA address to non-loadable sections > (such as ".bss" section) is not prevented. Why is this a problem? Changing this as you have done will break other code in the linker, eg. _bfd_elf_map_sections_to_segments. -- Alan Modra IBM OzLabs - Linux Technology Centre