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

Jeremy Fitzhardinge
2006-08-01T22:10:22Z

Eric W. Biederman wrote:
> +.macro note name, type
> + .balign 4
> + .int 2f - 1f # n_namesz
> + .int 4f - 3f # n_descsz
> + .int \type # n_type
> + .balign 4
> +1: .asciz "\name"
> +2: .balign 4
> +3:
> +.endm
> +.macro enote
> +4: .balign 4
> +.endm
>

This is very similar to the macro I introduced in the Paravirt note
segment patch. Do think they should be made common?

> +/* Elf notes to help bootloaders identify what program they are booting.
> + */
> +
> +/* Standardized Elf image notes for booting... The name for all of these is ELFBoot */
> +#define ELF_NOTE_BOOT "ELFBoot"
>

I wonder if this should be something to suggest its Linux-specific? Or
do you see this being used by a wider audience?

J