Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: "H. Peter Anvin" <hpa@xxxxxxxxx>
- Date: Wed, 04 Oct 2006 08:18:07 -0700
Eric W. Biederman wrote:
The entrypoint is going to be a major headache, since the standard kernel is
entered in real mode, whereas an ELF file will typically be entered in protected
mode, quite possibly using the C calling convention to pass the command line as
(argc, argv). God only knows how they're going to deal with an initrd.
It may very well be that the ELF magic number has to be obfuscated.
The entry point that is exported is the kernels protected mode entry point
that is used after the real mode code has been run. This is to allow
bootloaders like kexec where running the real-mode code is insane or
impossible to be used.
The calling conventions though are not changed, this is just formalizing
something that various groups have been doing for years. Since it is
all in the bzImage we still only have a single file format to support,
so any bootloader that can load a standard bzImage and run the kernels
real mode code should still do it that way but. If you can't the
rest of the information is available.
Well, it doesn't help if what you end up with for some bootloader is a nonfunctioning kernel.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: Eric W. Biederman
- Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- References:
- [RFC][PATCH 0/12] ELF Relocatable x86 bzImage (V2)
- From: Vivek Goyal
- [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: Vivek Goyal
- Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: Andrew Morton
- Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: Vivek Goyal
- Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: H. Peter Anvin
- Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- From: Eric W. Biederman
- [RFC][PATCH 0/12] ELF Relocatable x86 bzImage (V2)
- Prev by Date: Re: [PATCH] Fix bug in snd-usb-usx2y's usX2Y_pcms_lock_check()
- Next by Date: 2.6.17 Panic
- Previous by thread: Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- Next by thread: Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage
- Index(es):
Relevant Pages
|