aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-code.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-10 23:48:14 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-10 23:48:14 +0000
commited9c0d48e0c7b822ab384e8d29d18ff60e7fd3ff (patch)
treedb84d49762e47880788c0c0ad0ed37798520dbc6 /bfd/coff-code.h
parent66d4e1bb88997032a543574f69f57c284181b39d (diff)
downloadgdb-ed9c0d48e0c7b822ab384e8d29d18ff60e7fd3ff.zip
gdb-ed9c0d48e0c7b822ab384e8d29d18ff60e7fd3ff.tar.gz
gdb-ed9c0d48e0c7b822ab384e8d29d18ff60e7fd3ff.tar.bz2
Eliminate close_and_cleanup routines.
Diffstat (limited to 'bfd/coff-code.h')
-rwxr-xr-xbfd/coff-code.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/bfd/coff-code.h b/bfd/coff-code.h
index 41a0f79..5625e71 100755
--- a/bfd/coff-code.h
+++ b/bfd/coff-code.h
@@ -1622,30 +1622,6 @@ coff_set_section_contents(abfd, section, location, offset, count)
return true;
}
-static boolean
-coff_close_and_cleanup(abfd)
- bfd *abfd;
-{
- if (!bfd_read_p(abfd))
- switch (abfd->format) {
- case bfd_archive:
- if (!_bfd_write_archive_contents(abfd))
- return false;
- break;
- case bfd_object:
- if (!coff_write_object_contents(abfd))
- return false;
- break;
- default:
- bfd_error = invalid_operation;
- return false;
- }
-
- /* We depend on bfd_close to free all the memory on the obstack. */
- /* FIXME if bfd_release is not using obstacks! */
- return true;
-}
-
static PTR
buy_and_read(abfd, where, seek_direction, size)
@@ -2538,3 +2514,4 @@ DEFUN(coff_sizeof_headers,(abfd, reloc),
#define coff_openr_next_archived_file bfd_generic_openr_next_archived_file
#define coff_generic_stat_arch_elt bfd_generic_stat_arch_elt
#define coff_get_section_contents bfd_generic_get_section_contents
+#define coff_close_and_cleanup bfd_generic_close_and_cleanup