X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fosf-core.c;h=3f384e7bd404a734fa3899a8970bd88488fdc2a3;hb=675800364bfdbc29ee034681339e4b4a137bb2f5;hp=de41f9ca60d958eabe3038b69b8ac2f7032e3113;hpb=827041555ac443bd57340060f3e034fd7b199dd8;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/osf-core.c b/bfd/osf-core.c index de41f9ca60..3f384e7bd4 100644 --- a/bfd/osf-core.c +++ b/bfd/osf-core.c @@ -1,5 +1,5 @@ /* BFD back-end for OSF/1 core files. - Copyright (C) 1993-2019 Free Software Foundation, Inc. + Copyright (C) 1993-2020 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -70,14 +70,14 @@ make_bfd_asection (bfd *abfd, 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); @@ -138,7 +138,7 @@ osf_core_core_file_p (bfd *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));