This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Fix ar/ranlib
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 5 May 2005 10:30:05 -0700
- Subject: 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);
}