X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fptrace-core.c;h=d21a61ce3f48e152c1e51bcf8b13aa2b7758e57a;hb=a03fbc65043d13c9de7a1a052feb24559ccfa7bf;hp=48a9b1c669e9a02c4fc0cf9f673c0c8e75ee5603;hpb=986f078366b193ed9f5bd02af965f3af958ba859;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/ptrace-core.c b/bfd/ptrace-core.c index 48a9b1c669..d21a61ce3f 100644 --- a/bfd/ptrace-core.c +++ b/bfd/ptrace-core.c @@ -1,5 +1,5 @@ /* BFD backend for core files which use the ptrace_user structure - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. The structure of this file is based on trad-core.c written by John Gilmore of Cygnus Support. Modified to work with the ptrace_user structure by Kevin A. Buettner. @@ -55,7 +55,7 @@ int ptrace_unix_core_file_failing_signal (bfd *abfd); #define ptrace_unix_core_file_pid _bfd_nocore_core_file_pid static void swap_abort (void); -const bfd_target * +bfd_cleanup ptrace_unix_core_file_p (bfd *abfd) { int val; @@ -124,7 +124,7 @@ ptrace_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); @@ -177,6 +177,7 @@ const bfd_target core_ptrace_vec = 0, /* symbol prefix */ ' ', /* ar_pad_char */ 16, /* ar_max_namelen */ + TARGET_KEEP_UNUSED_SECTION_SYMBOLS, /* keep unused section symbols. */ NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data */ NO_GET, NO_GETS, NO_PUT, /* 32 bit data */ NO_GET, NO_GETS, NO_PUT, /* 16 bit data */