From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25505 invoked by alias); 5 May 2005 17:30:26 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 24844 invoked from network); 5 May 2005 17:30:06 -0000 Received: from unknown (HELO rwcrmhc12.comcast.net) (216.148.227.85) by sourceware.org with SMTP; 5 May 2005 17:30:06 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (rwcrmhc12) with ESMTP id <2005050517300501400g49h3e>; Thu, 5 May 2005 17:30:06 +0000 Received: by lucon.org (Postfix, from userid 1000) id B9EB3646BD; Thu, 5 May 2005 10:30:05 -0700 (PDT) Date: Thu, 05 May 2005 17:32:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Subject: PATCH: Fix ar/ranlib Message-ID: <20050505173005.GA30807@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2005-05/txt/msg00185.txt.bz2 We are calling _bfd_dwarf2_cleanup_debug_info on archives. I checked in the following patch to fix it. H.J. ---- 2005-05-05 H.J. Lu * elf.c (_bfd_elf_close_and_cleanup): Only call _bfd_dwarf2_cleanup_debug_info on bfd_object. --- elf.c.ar 2005-05-05 09:50:26.000000000 -0700 +++ elf.c 2005-05-05 10:17:35.000000000 -0700 @@ -6742,10 +6742,9 @@ _bfd_elf_close_and_cleanup (bfd *abfd) { if (elf_shstrtab (abfd) != NULL) _bfd_elf_strtab_free (elf_shstrtab (abfd)); + _bfd_dwarf2_cleanup_debug_info (abfd); } - _bfd_dwarf2_cleanup_debug_info (abfd); - return _bfd_generic_close_and_cleanup (abfd); }