This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix ar/ranlib


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]