From 4a25b09a81a4862aca84a0bb5e6e3953db074a34 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 29 Aug 2017 10:52:30 -0700 Subject: [PATCH] Call _close_and_cleanup in bfd_close_all_done PR binutils/22032 * opncls.c (bfd_close_all_done): Call _close_and_cleanup. --- bfd/opncls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bfd/opncls.c b/bfd/opncls.c index 913341c9ffc..b99ae728c07 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -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);