aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-05 17:22:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-05 17:22:40 +0000
commit6f140a15a35d90cccc485451e2ecda586f23b4eb (patch)
tree8c2495ff57c0719bfb50f14ec8fe7160a7faf0fd /bfd
parent01d9ad14d45872a6f97b7ca0599603cec06e1c63 (diff)
downloadfsf-binutils-gdb-6f140a15a35d90cccc485451e2ecda586f23b4eb.zip
fsf-binutils-gdb-6f140a15a35d90cccc485451e2ecda586f23b4eb.tar.gz
fsf-binutils-gdb-6f140a15a35d90cccc485451e2ecda586f23b4eb.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a1c9e8c..4430b5c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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.
+
+2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
+
* elflink.c (_bfd_elf_provide_section_bound_symbols): Use
"__bss_start" instead of "_edata" as fallback.
@@ -145,7 +150,7 @@
(_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
allocated by functions in this file.
* elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
- * elf.c (bfd_elf_close_and_cleanup): Call
+ * elf.c (_bfd_elf_close_and_cleanup): Call
_bfd_dwarf2_cleanup_debug_info.
2005-05-05 Hans-Peter Nilsson <hp@axis.com>
diff --git a/bfd/elf.c b/bfd/elf.c
index 6ba2cb8..7f402c3 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6683,10 +6683,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);
}