From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FI50D-0005vw-NO for qemu-devel@nongnu.org; Sat, 11 Mar 2006 09:23:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FI50C-0005vk-PZ for qemu-devel@nongnu.org; Sat, 11 Mar 2006 09:23:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FI50C-0005vh-Jp for qemu-devel@nongnu.org; Sat, 11 Mar 2006 09:23:28 -0500 Received: from [65.74.133.6] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FI53j-0006rp-6m for qemu-devel@nongnu.org; Sat, 11 Mar 2006 09:27:07 -0500 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] reduce magic numbers length to 16 bytes (qemu-binfmt-conf.sh) Date: Sat, 11 Mar 2006 14:23:11 +0000 References: <5b5833aa0603101858t5ebe6f7i667175ef8e966085@mail.gmail.com> In-Reply-To: <5b5833aa0603101858t5ebe6f7i667175ef8e966085@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603111423.20268.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Saturday 11 March 2006 02:58, Anderson Lizardo wrote: > Hi, > > Any reason why the magic numbers from qemu-binfmt-conf.sh are not just > 16 bytes long as those reported by "readelf --file-header"? The first 16 bytes only tell you it's an ELF executable. ie. you've just removed the bits that tell you whether it's e.g an arm or a ppc executable. You'll notice that after your patch all the be/le pattern matches are identical, which is obviously not going to work. Paul