HimbeerserverDE / loadnothing

Can I run boot code?
GNU General Public License v3.0
1 stars 1 forks source link

Compile stage 2 to ELF and parse it #6

Open HimbeerserverDE opened 2 years ago

HimbeerserverDE commented 2 years ago

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.

LizzyFleckenstein03 commented 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.