aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff64-rs6000.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-03-22 08:55:19 +1030
committerAlan Modra <amodra@gmail.com>2023-03-22 08:55:19 +1030
commit509ab0875d598dc36edb80d4d6a957b41540d992 (patch)
tree36169eca726ebd4b2c95d292cb2b571bb0c8abdf /bfd/coff64-rs6000.c
parentca26b8030e8c184bdeca7280e31c10c6e9fc3f78 (diff)
downloadgdb-509ab0875d598dc36edb80d4d6a957b41540d992.zip
gdb-509ab0875d598dc36edb80d4d6a957b41540d992.tar.gz
gdb-509ab0875d598dc36edb80d4d6a957b41540d992.tar.bz2
XCOFF: use bfd_coff_close_and_cleanup
Free memory on closing bfds. The COFF close_and_cleanup does more work than _bfd_generic_close_and_cleanup (defined as _bfd_archive_close_and_cleanup). * coff-rs6000.c (_bfd_xcoff_close_and_cleanup): Define as _bfd_coff_close_and_cleanup. * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Use _bfd_coff_close_and_cleanup.
Diffstat (limited to 'bfd/coff64-rs6000.c')
-rw-r--r--bfd/coff64-rs6000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 929a773..e3a5da3 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2624,7 +2624,7 @@ const bfd_target rs6000_xcoff64_vec =
},
/* Generic */
- _bfd_archive_close_and_cleanup,
+ _bfd_coff_close_and_cleanup,
_bfd_bool_bfd_true,
coff_new_section_hook,
_bfd_generic_get_section_contents,
@@ -2897,7 +2897,7 @@ const bfd_target rs6000_xcoff64_aix_vec =
},
/* Generic */
- _bfd_archive_close_and_cleanup,
+ _bfd_coff_close_and_cleanup,
_bfd_bool_bfd_true,
coff_new_section_hook,
_bfd_generic_get_section_contents,