~bfd_cache() { if (abfd) { bfd_cache_close(abfd); bfd_free_cached_info(abfd); bfd_close_all_done(abfd); } }
bfd_boolean bfd_cache_close_all () { bfd_boolean ret = TRUE; while (bfd_last_cache != NULL) ret &= bfd_cache_close (bfd_last_cache); return ret; }
static void remove_output (void) { if (output_filename) { if (link_info.output_bfd) bfd_cache_close (link_info.output_bfd); if (delete_output_file_on_failure) unlink_if_ordinary (output_filename); } }
static int cache_bclose (struct bfd *abfd) { return bfd_cache_close (abfd) - 1; }