PATCH: Fix ar/ranlib

H. J. Lu hjl@lucon.org
Thu May 5 17:32:00 GMT 2005


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  <hongjiu.lu@intel.com>

        * 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);
 }
 



More information about the Binutils mailing list