Open HimbeerserverDE opened 2 years ago
Possibly relevant: https://github.com/TheCodeArtist/elf-parser/blob/master/elf-parser.c Still it's questionable whether we can fit an ELF parser into the boot sector. Maybe we'll need to add an additional stage2 that parses the ELF.
It is apparently not intended to compile raw Rust binaries. Maybe test if a freestanding ELF can use
write!
/format_args!
. If it can and Rust is not replaced by a different language, find a solution for relocation in memory and write an ELF loader in stage 1.