Simplify EFI stub generation
authorJack Miller <jack@codezen.org>
Tue, 20 Sep 2016 05:42:30 +0000 (00:42 -0500)
committerJack Miller <jack@codezen.org>
Tue, 20 Sep 2016 05:42:30 +0000 (00:42 -0500)
commit959600d067ea841ff8fa4eb63f5479b9afaabaa4
tree125a16310e4e504033a0a9d77ae4267b0a911f0d
parent038375416552eb514b7da284fac5098fddb59139
Simplify EFI stub generation

TIL about ld -R with which another binary can be used as a symbol
reference. This lets us directly embed the proper information in the
header and directly reference kernel memory addresses in the EFI stub,
which completely obviates the need for the fixup_stub* shenanigans.

Also migrates the stub code to gettin processed by cpp.
Makefile
TODO
asm/efi.asm-bin [new file with mode: 0644]
asm/head.asm
boot/efi.asm [deleted file]
boot/fixup_stub.c [deleted file]
boot/fixup_stub.sh [deleted file]
boot/grub_sig.c [deleted file]
kernel/grub_sig.c [new file with mode: 0644]