mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
linux-2.6.4 has different code in head.S
committer: jreiser <jreiser> 1079655854 +0000
This commit is contained in:
parent
5c567c5a76
commit
81e77a8b2b
|
@ -199,7 +199,8 @@ int PackVmlinuzI386::decompressKernel()
|
|||
throwCantPack("trailing bytes after kernel image; use option `-f' to force packing");
|
||||
}
|
||||
// see /usr/src/linux/arch/i386/kernel/head.S:
|
||||
if (memcmp(ibuf, "\xFC\xB8", 2) != 0)
|
||||
if (memcmp(ibuf, "\xFC\xB8", 2) != 0
|
||||
&& memcmp(ibuf, "\xFC\x0F\x01", 3) != 0 )
|
||||
throwCantPack("unrecognized kernel architecture; use option `-f' to force packing");
|
||||
|
||||
// FIXME: more checks for special magic bytes in ibuf ???
|
||||
|
|
Loading…
Reference in New Issue
Block a user