diff options
| author | Peter Jones <pjones@redhat.com> | 2023-04-28 14:44:34 -0400 |
|---|---|---|
| committer | Jan Setje-Eilers <73182357+jsetje@users.noreply.github.com> | 2023-06-23 14:13:13 -0700 |
| commit | 996496065e9231dc51ca99b903615df8640bb797 (patch) | |
| tree | 16324f1385ae56dc90081cb4bedb9c82b1f8f28d /include | |
| parent | be00279537f004afc89b206bd57baf75ee9569a0 (diff) | |
| download | efi-boot-shim-996496065e9231dc51ca99b903615df8640bb797.tar.gz efi-boot-shim-996496065e9231dc51ca99b903615df8640bb797.zip | |
Split pe.c up even more.
This moves the parts of pe.c that *don't* depend on Cryptlib into
pe-relocate.c, so we can write test cases for them without having to
make a second openssl build without EFI support.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/pe.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/pe.h b/include/pe.h index ccc8798b..9ea9eb44 100644 --- a/include/pe.h +++ b/include/pe.h @@ -22,6 +22,20 @@ EFI_STATUS verify_sbat_section(char *SBATBase, size_t SBATSize); EFI_STATUS +get_section_vma (UINTN section_num, + char *buffer, size_t bufsz UNUSED, + PE_COFF_LOADER_IMAGE_CONTEXT *context, + char **basep, size_t *sizep, + EFI_IMAGE_SECTION_HEADER **sectionp); + +EFI_STATUS +get_section_vma_by_name (char *name, size_t namesz, + char *buffer, size_t bufsz, + PE_COFF_LOADER_IMAGE_CONTEXT *context, + char **basep, size_t *sizep, + EFI_IMAGE_SECTION_HEADER **sectionp); + +EFI_STATUS handle_image (void *data, unsigned int datasize, EFI_LOADED_IMAGE *li, EFI_IMAGE_ENTRY_POINT *entry_point, |
