Skip to content
Snippets Groups Projects
Commit 84b40b40 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Alexander Graf
Browse files

efi_loader: save image relocation address and size


For analyzing crash output the relocation address and size are needed.
Save them in the loaded image info.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 7fb96a10
No related branches found
No related tags found
No related merge requests found
...@@ -331,6 +331,8 @@ struct efi_loaded_image { ...@@ -331,6 +331,8 @@ struct efi_loaded_image {
/* Below are efi loader private fields */ /* Below are efi loader private fields */
#ifdef CONFIG_EFI_LOADER #ifdef CONFIG_EFI_LOADER
void *reloc_base;
aligned_u64 reloc_size;
efi_status_t exit_status; efi_status_t exit_status;
struct jmp_buf_data exit_jmp; struct jmp_buf_data exit_jmp;
#endif #endif
......
...@@ -221,6 +221,8 @@ void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info) ...@@ -221,6 +221,8 @@ void *efi_load_pe(void *efi, struct efi_loaded_image *loaded_image_info)
/* Populate the loaded image interface bits */ /* Populate the loaded image interface bits */
loaded_image_info->image_base = efi; loaded_image_info->image_base = efi;
loaded_image_info->image_size = image_size; loaded_image_info->image_size = image_size;
loaded_image_info->reloc_base = efi_reloc;
loaded_image_info->reloc_size = virt_size;
return entry; return entry;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment