This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] coff-stgo32: Fix false format match
- From: DJ Delorie <dj at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 20 Jul 2011 14:26:51 -0400
- Subject: Re: [patch] coff-stgo32: Fix false format match
- References: <20110720152121.GA7004@host1.jankratochvil.net>
GO32 binaries need not have the stub on them, so you have to check for
MZ as well as a standard COFF magic number at offset zero.