From: H.J. Lu Date: Mon, 2 Mar 2020 12:35:23 +0000 (-0800) Subject: trad_unix_core_file_p: Return bfd_cleanup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=728d32c496435cbd2529f7de9f5277d88c9c04e2;p=binutils-gdb.git trad_unix_core_file_p: Return bfd_cleanup * trad-core.c (trad_unix_core_file_p): Return bfd_cleanup. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a917631b388..505da06addc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2020-03-02 H.J. Lu + + * trad-core.c (trad_unix_core_file_p): Return bfd_cleanup. + 2020-03-02 Alan Modra * targets.c (bfd_cleanup): New typedef. diff --git a/bfd/trad-core.c b/bfd/trad-core.c index 10ab2521344..1b2477a4c58 100644 --- a/bfd/trad-core.c +++ b/bfd/trad-core.c @@ -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);