]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
trad_unix_core_file_p: Return bfd_cleanup
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Mar 2020 12:35:23 +0000 (04:35 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 Mar 2020 12:35:23 +0000 (04:35 -0800)
* trad-core.c (trad_unix_core_file_p): Return bfd_cleanup.

bfd/ChangeLog
bfd/trad-core.c

index a917631b3884ea5bfccc777373809d65fb519320..505da06addcd663b088e42d0aa2b3fd5961813fb 100644 (file)
@@ -1,3 +1,7 @@
+2020-03-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * trad-core.c (trad_unix_core_file_p): Return bfd_cleanup.
+
 2020-03-02  Alan Modra  <amodra@gmail.com>
 
        * targets.c (bfd_cleanup): New typedef.
index 10ab2521344bed8832a28f865c5632d1c03bfc67..1b2477a4c588c2ce371331dd1a0bdbb979e49d5f 100644 (file)
@@ -71,7 +71,7 @@ struct trad_core_struct
 
 /* 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;
@@ -220,7 +220,7 @@ trad_unix_core_file_p (bfd *abfd)
   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);