Re: [PATCH 12/12] i386 boot: Add an ELF header to bzImage

Eric W. Biederman
2006-10-05T03:11:43Z

Vivek Goyal <vgoyal@in.ibm.com> writes:

> Hi Eric,
>
> Sure. I will get rid if ELF note generation for bzImage ELF header.
>
> But would that stop bootloaders out there from treating kernel as
> an ELF executable?

No. The point of the notes is so that the bootloaders can look
at the kernel and have a strong hint what the right thing todo is.

The reason for taking them out is that what needs to happen is that
we need to put the notes into vmlinux and then copy the notes in
vmlinux into the bzImage. Taking the notes out just make way
for us to put them back in properly.

> I have got a FC5 machine with grub version .97 and everything seems
> to work for me. So I am assuming that Andrew got a newer version of
> Grub which is trying to load ther kernel as an ELF executable and then
> running into the issues.

We need to figure out how to reproduce this.

Eric