From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14626 invoked by alias); 24 May 2006 15:34:49 -0000 Received: (qmail 14615 invoked by uid 22791); 24 May 2006 15:34:48 -0000 X-Spam-Check-By: sourceware.org Received: from smtp109.sbc.mail.mud.yahoo.com (HELO smtp109.sbc.mail.mud.yahoo.com) (68.142.198.208) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 24 May 2006 15:34:46 +0000 Received: (qmail 3854 invoked from network); 24 May 2006 15:33:38 -0000 Received: from unknown (HELO lucon.org) (hjjean@sbcglobal.net@71.146.96.173 with login) by smtp109.sbc.mail.mud.yahoo.com with SMTP; 24 May 2006 15:33:38 -0000 Received: by lucon.org (Postfix, from userid 1000) id 59F26641B3; Wed, 24 May 2006 08:33:37 -0700 (PDT) Date: Thu, 25 May 2006 00:58:00 -0000 From: "H. J. Lu" To: Julian Brown Cc: binutils@sourceware.org, Richard Earnshaw , Paul Brook Subject: Re: [PATCH] Fix section symbols in objcopy when removing sections with relocations from Elf objects Message-ID: <20060524153337.GA3565@lucon.org> References: <44746112.1000203@codesourcery.com> <44746DE7.4060004@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44746DE7.4060004@codesourcery.com> User-Agent: Mutt/1.4.2.1i 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-05/txt/msg00441.txt.bz2 On Wed, May 24, 2006 at 03:29:59PM +0100, Julian Brown wrote: > Julian Brown wrote: > >Hi, > > > >This patch fixes a problem where, if sections are removed during objcopy > >with Elf object files, the section symbols corresponding to the > >relocation sections for the removed sections may be left in the target > >object file. > > This is a slightly-smarter version (thanks to offlist discussion with > Dan) which knows about recoving Elf symbols from BFD symbols, hence > avoids some unnecessary work. > Can you add a testcase so that it won't be broken by accident? H.J.