Add support for reading msdos MZ executables.
authorZebediah Figura <z.figura12@gmail.com>
Mon, 12 Feb 2018 13:12:45 +0000 (13:12 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 12 Feb 2018 13:15:56 +0000 (13:15 +0000)
commit830db0485e19000985ccfdbacda4d4d5d62583bb
treedada7466cb61a68114ec1819770b9e58fe86000d
parent7e784da5439adaffebd2041c4abbb8a9c1e396dd
Add support for reading msdos MZ executables.

See email thread starting here:  https://www.sourceware.org/ml/binutils/2018-01/msg00001.html

include * coff/msdos.h: New header.
* coff/pe.h: Move common defines to msdos.h.
* coff/powerpc.h: Likewise.

bfd * i386msdos.c (msdos_mkobject); New function.
(msdos_object_p): New function.
(i386_msdos_vec): Use msdos_object_p as the check_format
function.
* peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
IMAGE_NT_SIGNATURE.
* peXXigen.c: Likewise.
* coff-ia64.c: Likewise.
bfd/ChangeLog
bfd/coff-ia64.c
bfd/i386msdos.c
bfd/peXXigen.c
bfd/peicode.h
include/ChangeLog
include/coff/msdos.h [new file with mode: 0644]
include/coff/pe.h
include/coff/powerpc.h