/* BFD back-end for OSF/1 core files.
- Copyright (C) 1993-2018 Free Software Foundation, Inc.
+ Copyright (C) 1993-2020 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
return asect;
}
-static const bfd_target *
+static bfd_cleanup
osf_core_core_file_p (bfd *abfd)
{
int val;
int i;
char *secname;
struct core_filehdr core_header;
- bfd_size_type amt;
+ size_t amt;
amt = sizeof core_header;
val = bfd_bread (& core_header, amt, abfd);
/* OK, we believe you. You're a core file (sure, sure). */
- return abfd->xvec;
+ return _bfd_no_cleanup;
fail:
bfd_release (abfd, core_hdr (abfd));