/* BFD back end for traditional Unix core files (U-area and raw sections)
- Copyright (C) 1988-2018 Free Software Foundation, Inc.
+ Copyright (C) 1988-2020 Free Software Foundation, Inc.
Written by John Gilmore of Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
/* Handle 4.2-style (and perhaps also sysV-style) core dump file. */
-static const bfd_target *
+static bfd_cleanup
trad_unix_core_file_p (bfd *abfd)
{
int val;
struct user u;
struct trad_core_struct *rawptr;
- bfd_size_type amt;
+ size_t amt;
flagword flags;
#ifdef TRAD_CORE_USER_OFFSET
core_datasec (abfd)->alignment_power = 2;
core_regsec (abfd)->alignment_power = 2;
- return abfd->xvec;
+ return _bfd_no_cleanup;
fail:
bfd_release (abfd, abfd->tdata.any);