Re: opening a bzImage?

From: Daniel Phillips (phillips@bonn-fries.net)
Date: Wed Feb 06 2002 - 02:40:00 EST


On February 5, 2002 06:22 pm, Catalin Marinas wrote:
> 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.

IANAL either, but I don't think you're right. Since somebody has distributed
the bzImage to him, that somebody is obligated to provide him the source code
- the full source code - if he requests it. In my opinion, the .config has
to be considered part of the source code since it's needed in order to
compile the binary he received. This issue needs to be clarified.

-- 
Daniel
-
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:47 EST