Home
last modified time | relevance | path

Searched refs:optional_header (Results 1 – 2 of 2) sorted by relevance

/lib/uefi/
A Duefi.cpp74 const auto optional_header = &pe_header->OptionalHeader; in load_sections_and_execute() local
96 alloc_page(reinterpret_cast<void *>(optional_header->ImageBase), in load_sections_and_execute()
110 printf("Relocating image from 0x%llx to %p\n", optional_header->ImageBase, in load_sections_and_execute()
114 image_base + optional_header->AddressOfEntryPoint); in load_sections_and_execute()
250 const auto optional_header = &pe_header->OptionalHeader; in load_pe_file() local
251 if (optional_header->Subsystem != SubsystemType::EFIApplication) { in load_pe_file()
252 printf("Unsupported Subsystem type: %d %s\n", optional_header->Subsystem, in load_pe_file()
253 ToString(optional_header->Subsystem)); in load_pe_file()
A Drelocation.cpp109 const auto optional_header = &pe_header->OptionalHeader; in relocate_image() local
111 optional_header->DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC]; in relocate_image()
121 reinterpret_cast<size_t>(image - optional_header->ImageBase); in relocate_image()
194 optional_header->ImageBase = reinterpret_cast<size_t>(image); in relocate_image()

Completed in 4 milliseconds