This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH v2] [BFD] Add support for reading msdos (MZ) executables.
- From: Nick Clifton <nickc at redhat dot com>
- To: Zebediah Figura <z dot figura12 at gmail dot com>, binutils at sourceware dot org
- Date: Wed, 3 Jan 2018 10:38:50 +0000
- Subject: Re: [PATCH v2] [BFD] Add support for reading msdos (MZ) executables.
- Authentication-results: sourceware.org; auth=none
- References: <1514916061-4735-1-git-send-email-z.figura12@gmail.com>
Hi Zebediah,
Looking good - thanks for the updates. Please remember however that
we cannot accept the patch until you have a copyright assignment in
place. I can provide you with the details of how to request one if
you want.
Also...
> +static const bfd_target *
> +msdos_object_p (bfd *abfd)
> +{
> + struct external_DOS_hdr hdr;
> + bfd_byte buffer[2];
> + asection *section;
> + unsigned int size;
> +
> + if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0
> + || bfd_bread (&hdr, (bfd_size_type) sizeof (hdr), abfd) != sizeof(hdr))
Isn't the external_DOS_hdr structure in this version of the patch larger
than the version that was in your original submission ? (Because of the
inclusion of the dos_message field). If so, does this mean that the code
might reject valid MZ binaries because they are too small ?
Cheers
Nick