mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
trad_unix_core_file_p: Return bfd_cleanup
* trad-core.c (trad_unix_core_file_p): Return bfd_cleanup.
This commit is contained in:
parent
4e07c9e2b6
commit
728d32c496
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user