[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: |
Andreas Schwab |
Subject: |
Re: [Qemu-devel] [PATCH] reduce magic numbers length to 16 bytes (qemu-binfmt-conf.sh) |
Date: |
Sat, 11 Mar 2006 15:51:33 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
"Anderson Lizardo" <address@hidden> writes:
> Any reason why the magic numbers from qemu-binfmt-conf.sh are not just
> 16 bytes long as those reported by "readelf --file-header"? For
> example:
>
> $ readelf --file-header /bin/true | grep Magic:
> Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
>
> Using only the first 16 bytes avoids the need to have separate entries
> for i386 and i486, given that they are emulated by the same program
> (qemu-i386).
How would you distinguish it from an arm or mipsel binary?
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."