summaryrefslogtreecommitdiff
path: root/shim/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'shim/entry.c')
-rw-r--r--shim/entry.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shim/entry.c b/shim/entry.c
index 303f582..a4d00c7 100644
--- a/shim/entry.c
+++ b/shim/entry.c
@@ -49,7 +49,11 @@ EFI_STATUS efi_shim_entry(struct efi_loader_image *image,
* 3. exit boot services
* 5. ???????????
*/
-
+
+ void *image_base = (void *)image->buffer_base;
+
+ elf_reloc(image_base);
+
EFI_STATUS status;
if (!image)