From 7c0ed39626e3193adb70aeb98d3633787579d6ec Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 30 Aug 2017 06:17:28 -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/ChangeLog | 5 +++++ bfd/opncls.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index bf509b6c50..488226077a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2017-08-30 H.J. Lu + + PR binutils/22032 + * opncls.c (bfd_close_all_done): Call _close_and_cleanup. + 2017-08-30 H.J. Lu * elf64-x86-64.c (elf_x86_64_next_tls_desc_index): Removed. diff --git a/bfd/opncls.c b/bfd/opncls.c index 913341c9ff..b99ae728c0 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); -- 2.34.1