Call _close_and_cleanup in bfd_close_all_done

PR binutils/22032
	* opncls.c (bfd_close_all_done): Call _close_and_cleanup.
This commit is contained in:
H.J. Lu 2017-08-30 06:17:28 -07:00
parent 0f2425c4c8
commit 7c0ed39626
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-08-30 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/22032
* opncls.c (bfd_close_all_done): Call _close_and_cleanup.
2017-08-30 H.J. Lu <hongjiu.lu@intel.com>
* elf64-x86-64.c (elf_x86_64_next_tls_desc_index): Removed.

View File

@ -776,6 +776,9 @@ bfd_close_all_done (bfd *abfd)
ret = bfd_cache_close (abfd);
if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
return FALSE;
if (ret)
_maybe_make_executable (abfd);