From 81e77a8b2bac330913cbe1deccf51b812f013ffd Mon Sep 17 00:00:00 2001 From: John Reiser Date: Fri, 19 Mar 2004 00:24:14 +0000 Subject: [PATCH] linux-2.6.4 has different code in head.S committer: jreiser 1079655854 +0000 --- src/p_vmlinz.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_vmlinz.cpp b/src/p_vmlinz.cpp index 683b5369..be42019c 100644 --- a/src/p_vmlinz.cpp +++ b/src/p_vmlinz.cpp @@ -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 ???