lkml.org 
[lkml]   [2002]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: opening a bzImage?
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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.099 / U:14.632 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site