aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-11-07 05:51:37 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-11-07 05:51:37 +0000
commit75344f2a89bb107d0da2a612bf18519239cf71bd (patch)
tree1ccbdefc5e8aa2d64ec76b851d434c387d1c9e71
parent9053b70efaad3b15547d74badd23cc9a32330cdd (diff)
downloadgdb-75344f2a89bb107d0da2a612bf18519239cf71bd.zip
gdb-75344f2a89bb107d0da2a612bf18519239cf71bd.tar.gz
gdb-75344f2a89bb107d0da2a612bf18519239cf71bd.tar.bz2
PR binutils/14481
* aout-target.h (MY_close_and_cleanup): Make local function instead of alias of MY_bfd_free_cached_info. Also call _bfd_generic_close_and_cleanup.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/aout-target.h13
2 files changed, 19 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 530ef7d..a2fb296 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-07 Hans-Peter Nilsson <hp@axis.com>
+
+ PR binutils/14481
+ * aout-target.h (MY_close_and_cleanup): Make local function
+ instead of alias of MY_bfd_free_cached_info. Also call
+ _bfd_generic_close_and_cleanup.
+
2012-11-06 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14813
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index f6e8bd2..1ffef87 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -577,7 +577,18 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
#endif
#ifndef MY_close_and_cleanup
-#define MY_close_and_cleanup MY_bfd_free_cached_info
+
+/* Handle closing of a BFD including the resource-releasing parts. */
+
+static bfd_boolean
+MY_close_and_cleanup (bfd *abfd)
+{
+ if (!MY_bfd_free_cached_info (abfd))
+ return FALSE;
+
+ return _bfd_generic_close_and_cleanup (abfd);
+}
+
#endif
#ifndef MY_get_dynamic_symtab_upper_bound