Re: opening a bzImage?

From: Catalin Marinas (c_marinas@yahoo.com)
Date: Tue Feb 05 2002 - 12:22:00 EST


On Tue, 5 Feb 2002, Roy Sigurd Karlsbakk wrote:

> I have this bzImage file given to me from a company. They don't want to
> give me the .config, but I need it, so I thought I'd try to
>
> - open the bzImage to a vmlinux
> - list the .o's in the vmlinux
>
> Is this possible?

No. Even if you decompress the image you can't list the .o files. The
decompressed image is not an archive (created with ar). It is a raw binary
file generated by objcopy.

Anyway, if you still want to decompress it, the gzip'ed parts does not
start from the beginning. In front of the kernel image might be a boot
sector and some other code for decompressing it, video initialization etc.
Look after the gzip signature (0x1F 0x8B I think) in your bzImage file.
Cut the data before this and use "gzip -d" to decompress it.

> Btw.. Does GPL require them to give me the .config file?

IANAL but I don't think so, there is no code from it to compile and
include in the kernel image. It just defines what the image contains.

-- 
Catalin

________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:43 EST