Control: reassign -1 src:qemu
Control: retitle -1 wrong some magic strings in binfmt registration
Control: tag -1 confirmed
[]
>> # qemu-x86_64 /usr/bin/cdebootstrap-static
>> /usr/bin/cdebootstrap-static: missing suite argument
>> Try `/usr/bin/cdebootstrap-static --help' for more information.
>> # cdebootstrap-static
>> -bash: /usr/bin/cdebootstrap-static: cannot execute binary file: Exec
>> format error
>
> Aha. So it is just the binfmt registration problem -- the magic strings.
> I'll take a look at this.
So the problem is quite interesting.
There's a field in ELF header, byte #7, ELF_OSABI. All at least x86
binaries so far had this field = 0, which means OSABI_SYSV. But
static libraries produced by recent gcc/binutils has this field = 3,
which means OSABI_GNU ("with GNU extensions" as comment says). And
this OSABI=3 variant is not handled by our binfmt magic/mask pair.
Now, this field (ELF_OSABI) is a enumeration, and we need to allow
either 0 or 3 in there, but not other variants, since this will
result in qemu trying to execute some clearly different-ABI binaries.
A somewhat too intrusive fix for a freeze, but I'll try.
Thanks,
/mjt
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]