Page 1 of 1

elf file format

Posted: Fri Jun 14, 2002 11:00 pm
by Brill
Hi, i have read some information about the elf file format and that it contains headers and other pieces of information about how it handles things etc. I myself want to make an elf exe as my kernel. Do i have to make these headers for the file for it to work correctly with grub myself with variables etc or will the assembler/linker do this all for me when i specify the elf format at assmble/link time?

Thanks in advance.
Brill

RE:elf file format

Posted: Fri Jun 14, 2002 11:00 pm
by carbonBased
I _believe_ (and hopefully someone can confirm) that you can use any elf binary, as long as it's static (ie, doesn't have any dynamic libraries).

If so, any binary you create through nasm, or gcc should be fine, as long as you don't link to libc or any other libs like that (In linux, "ld kernel" should return nothing).

Jeff