summaryrefslogtreecommitdiff
path: root/image.sh
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-12-17 16:06:06 +0000
committerAda Christine <adachristine18@gmail.com>2021-12-17 16:06:06 +0000
commitd5f485a4f6801f58cbb2bc9d8e80c955c79ff044 (patch)
treee49757ff0b076fe9f0088de92e5691d362e769a0 /image.sh
parentec1233b4fcd61a8d1eccbf030cede36e9848e06c (diff)
R_AMD64_RELATIVE relocations implemented for EFI shim
Diffstat (limited to 'image.sh')
-rwxr-xr-ximage.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/image.sh b/image.sh
index 7d32df4..a14f635 100755
--- a/image.sh
+++ b/image.sh
@@ -2,6 +2,7 @@
imagefile=uefi.img
loaderfile=loader/loader.efi
+shimfile=shim/efi.os
kernelfile=kernel/kernel.os
if [[ ! -f ${imagefile} ]]; then
@@ -14,5 +15,6 @@ mmd -i ${imagefile} -Do ::EFI/BOOT
mcopy -i ${imagefile} -Do ${loaderfile} ::EFI/BOOT/BOOTX64.EFI
mmd -i ${imagefile} -Do ::adasoft
mmd -i ${imagefile} -Do ::adasoft/sophia
-mcopy -i ${imagefile} ${kernelfile} -Do ::adasoft/sophia
+mcopy -i ${imagefile} -Do ${shimfile} -Do ::adasoft/sophia
+mcopy -i ${imagefile} -Do ${kernelfile} -Do ::adasoft/sophia