[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] reduce magic numbers length to 16 bytes (qemu-b
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 |
User-agent: |
KMail/1.9.1 |
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