/* BFD back end for NetBSD style core files
- Copyright (C) 1988-2018 Free Software Foundation, Inc.
+ Copyright (C) 1988-2020 Free Software Foundation, Inc.
Written by Paul Kranenburg, EUR
This file is part of BFD, the Binary File Descriptor library.
/* Handle NetBSD-style core dump file. */
-static const bfd_target *
+static bfd_cleanup
netbsd_core_file_p (bfd *abfd)
{
int val;
asection *asect;
struct core core;
struct coreseg coreseg;
- bfd_size_type amt = sizeof core;
+ size_t amt = sizeof core;
val = bfd_bread (&core, amt, abfd);
if (val != sizeof core)
}
/* OK, we believe you. You're a core file (sure, sure). */
- return abfd->xvec;
+ return _bfd_no_cleanup;
punt:
bfd_release (abfd, abfd->tdata.any);