build: keep elf64 headers in memory image
We need the headers so we can provide the symbols to loaded libraries. This means we cannot use objcopy to munge the binary format to elf32-i386, as the loader doesn't understand this format. Instead, add a separate 32-bit only stage (in elf32-i386 format) that loads the 64-bit image into memory as its payload. This keeps multiboot happy and leave our headers alone.
arch/x64/boot32.s
0 → 100644
arch/x64/loader32.ld
0 → 100644
Please register or sign in to comment