diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-12-17 16:06:06 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-12-17 16:06:06 +0000 |
| commit | d5f485a4f6801f58cbb2bc9d8e80c955c79ff044 (patch) | |
| tree | e49757ff0b076fe9f0088de92e5691d362e769a0 /shim/entry.c | |
| parent | ec1233b4fcd61a8d1eccbf030cede36e9848e06c (diff) | |
R_AMD64_RELATIVE relocations implemented for EFI shim
Diffstat (limited to 'shim/entry.c')
| -rw-r--r-- | shim/entry.c | 6 |
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) |
