From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7149 invoked by alias); 13 May 2010 03:37:58 -0000 Received: (qmail 7140 invoked by uid 22791); 13 May 2010 03:37:57 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 May 2010 03:37:52 +0000 Received: by pwi7 with SMTP id 7so572799pwi.0 for ; Wed, 12 May 2010 20:37:51 -0700 (PDT) Received: by 10.114.248.22 with SMTP id v22mr6684351wah.8.1273721871105; Wed, 12 May 2010 20:37:51 -0700 (PDT) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id c1sm6860753wam.7.2010.05.12.20.37.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 May 2010 20:37:49 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id C2A01170C2C3; Thu, 13 May 2010 13:07:42 +0930 (CST) Date: Thu, 13 May 2010 03:37:00 -0000 From: Alan Modra To: David Stubbs Cc: binutils@sourceware.org, sdkteam-gnu Subject: Re: VMA section overlap warnings for overlays Message-ID: <20100513033742.GH5443@bubble.grove.modra.org> Mail-Followup-To: David Stubbs , binutils@sourceware.org, sdkteam-gnu References: <4D60B0700D1DB54A8C0C6E9BE69163700E67DFD1@EXCHANGEVS.IceraSemi.local> <20100421082441.GG3510@bubble.grove.modra.org> <4D60B0700D1DB54A8C0C6E9BE69163700E7815C7@EXCHANGEVS.IceraSemi.local> <20100422011106.GI3510@bubble.grove.modra.org> <20100422015303.GK3510@bubble.grove.modra.org> <4D60B0700D1DB54A8C0C6E9BE69163700E7F2F15@EXCHANGEVS.IceraSemi.local> <20100424021750.GQ3510@bubble.grove.modra.org> <4D60B0700D1DB54A8C0C6E9BE69163700EC60376@EXCHANGEVS.IceraSemi.local> <20100508114913.GA31122@bubble.grove.modra.org> <4D60B0700D1DB54A8C0C6E9BE69163700ED69E1A@EXCHANGEVS.IceraSemi.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D60B0700D1DB54A8C0C6E9BE69163700ED69E1A@EXCHANGEVS.IceraSemi.local> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-05/txt/msg00117.txt.bz2 On Wed, May 12, 2010 at 02:19:24PM +0100, David Stubbs wrote: > I have however found another potential problem with strip. Here's the > test: [snip] > brsbs01 1>strip test.exe > BFD: stHVOxcK: section .overlay1.bss lma 0x1021 overlaps previous > sections > BFD: stHVOxcK: section .overlay2.bss lma 0x1021 overlaps previous > sections This is caused by the heuristics we use to set LMA for SHT_NOBITS sections (bfd/elf.c:984). I don't think we can make any changes here though: sh_offset isn't really valid for a SHT_NOBITS section. -- Alan Modra Australia Development Lab, IBM