2006-04-25 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 25 Apr 2006 17:46:15 +0000 (17:46 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 25 Apr 2006 17:46:15 +0000 (17:46 +0000)
commitb25e3d8745c44ea273073a657682137b97a04d1e
treee0a160144965edf2892e57004a67d7b12d9d81de
parent1946c96e94f55ec6ebb8dcfc2521f9dd31921f68
2006-04-25  H.J. Lu  <hongjiu.lu@intel.com>

PR binutils/2467
* elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd)
is NULL first.

* elf32-arm.c (elf32_arm_close_and_cleanup): Check if
abfd->sections is NULL.
(elf32_arm_bfd_free_cached_info): New.
(bfd_elf32_bfd_free_cached_info): Defined.

* elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it
to _bfd_free_cached_info.

* libbfd-in.h (_bfd_free_cached_info): New.
* libbfd: Regenerated.

* opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL.
(_bfd_free_cached_info): New.
bfd/ChangeLog
bfd/elf.c
bfd/elf32-arm.c
bfd/elfxx-target.h
bfd/libbfd-in.h
bfd/opncls.c