From 39822304d53f9271e368c54292d84be6029f97cd Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 5 May 2005 17:22:40 +0000 Subject: [PATCH] 2005-05-05 H.J. Lu * elf.c (_bfd_elf_close_and_cleanup): Only call _bfd_dwarf2_cleanup_debug_info on bfd_object. --- bfd/ChangeLog | 7 ++++++- bfd/elf.c | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a1c9e8c1af..4430b5c2ef 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2005-05-05 H.J. Lu + * elf.c (_bfd_elf_close_and_cleanup): Only call + _bfd_dwarf2_cleanup_debug_info on bfd_object. + +2005-05-05 H.J. Lu + * 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 diff --git a/bfd/elf.c b/bfd/elf.c index 6ba2cb86f4..7f402c3cb3 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); } -- 2.11.0