Searched refs:payload_start (Results 1 – 3 of 3) sorted by relevance
/DragonStub/apps/ |
H A D | elf.c | 56 bool elf_check(const void *payload_start, u64 payload_size) in elf_check() argument 59 if (!verify_ident(payload_start, payload_size)) { in elf_check() 63 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)payload_start; in elf_check() 82 efi_status_t elf_get_header(const void *payload_start, u64 payload_size, in elf_get_header() argument 85 if (!verify_ident(payload_start, payload_size)) { in elf_get_header() 88 *ehdr = (Elf64_Ehdr *)payload_start; in elf_get_header() 110 static efi_status_t parse_phdrs(const void *payload_start, u64 payload_size, in parse_phdrs() argument 137 Elf64_Shdr *shdr = (Elf64_Shdr *)(payload_start + shoff); in parse_phdrs() 154 Elf64_Phdr *phdr = (Elf64_Phdr *)(payload_start + phoff); in parse_phdrs() 325 static efi_status_t load_program(const void *payload_start, u64 payload_size, in load_program() argument [all …]
|
H A D | stub.c | 120 u64 payload_start = (u64)_binary_payload_start; in find_elf() local 123 u64 payload_size = payload_end - payload_start; in find_elf() 125 efi_info("payload_addr: %p\n", payload_start); in find_elf() 129 if (payload_start == 0 || payload_end <= payload_start + 4 || in find_elf() 135 bool found = elf_check((void *)payload_start, payload_size); in find_elf() 138 info->payload_addr = payload_start; in find_elf()
|
/DragonStub/inc/dragonstub/ |
H A D | elfloader.h | 8 bool elf_check(const void *payload_start, u64 payload_size); 15 efi_status_t elf_get_header(const void *payload_start, u64 payload_size,
|