lkml.org 
[lkml]   [2003]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: zImage now holds vmlinux, System.map and config in sections. (fwd)
From
Date
On Tue, 2003-02-25 at 11:52, Russell King wrote:

> Well, rather than creating yet another archive system, maybe we should
> just tar the lot up and make all boot loaders aware of the tar format?
> After all, everyone understands tar and .debs better than RPMs, don't
> they?

I'm not sure ELF should really be considered "yet another archive
system." This is analogous with keeping debug in another ELF section
for user apps. You can keep it, you can strip it, etc. Other formats
would work, but as you say you'd have to modify the bootloaders to
accept them.

These sections don't have to be thrown away after boot either. While
the sections should be marked as no-load, it may be useful to actually
load them and have the kernel explicitly toss them if it finds no use
for them. Real uses would including exporting to /proc/config.gz (if
you like that kind of thing), or providing the System.map to kdb if kdb
is enabled.

Note that we also supply the initial ramdisk (which is loaded of course)
this way. In theory you could remove the ramdisk and replace it by
using objcopy, but we still have some things to fix before that will
work. This *is* useful for people who netboot (at least for ppc64
systems).

-todd

-
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:33    [W:0.065 / U:2.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site