From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16011 invoked by alias); 20 Jul 2011 18:27:13 -0000 Received: (qmail 16003 invoked by uid 22791); 20 Jul 2011 18:27:12 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 18:26:54 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6KIQrp9003184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 20 Jul 2011 14:26:53 -0400 Received: from greed.delorie.com (ovpn-113-29.phx2.redhat.com [10.3.113.29]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6KIQqCN027363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 20 Jul 2011 14:26:53 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.14.4/8.14.4) with ESMTP id p6KIQpqx000574; Wed, 20 Jul 2011 14:26:51 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.4/8.14.4/Submit) id p6KIQpo2000573; Wed, 20 Jul 2011 14:26:51 -0400 Date: Wed, 20 Jul 2011 19:10:00 -0000 Message-Id: <201107201826.p6KIQpo2000573@greed.delorie.com> From: DJ Delorie To: Jan Kratochvil CC: binutils@sourceware.org In-reply-to: <20110720152121.GA7004@host1.jankratochvil.net> (message from Jan Kratochvil on Wed, 20 Jul 2011 17:21:21 +0200) Subject: Re: [patch] coff-stgo32: Fix false format match References: <20110720152121.GA7004@host1.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00189.txt.bz2 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.