This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] Make objcopy handle core files.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Michael Snyder <msnyder at cygnus dot com>
- Cc: binutils at sources dot redhat dot com, nickc at redhat dot com
- Date: Tue, 18 Dec 2001 14:08:54 +1030
- Subject: Re: [RFA] Make objcopy handle core files.
- References: <200112122323.fBCNNWZ30944@reddwarf.cygnus.com>
On Wed, Dec 12, 2001 at 03:23:32PM -0800, Michael Snyder wrote:
>
> * objcopy.c (copy_file): Accept corefiles (format bfd_core).
> (copy_object): Don't set the start address or flags of a core file.
> (copy_section): Don't relocate a core file. Don't copy contents
> if the input section has the contents flag set, but the output
> section does not (which happens with the fake 'note' pseudo-
> sections that BFD creates for corefiles).
OK.
> ! /* Neither the start address nor the flags
> ! need to be set for a core file. */
> ! if (!bfd_check_format (ibfd, bfd_core))
Doesn't bfd_get_format work here?