Home
last modified time | relevance | path

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

/xen/xen/arch/x86/efi/
A Dmkreloc.c32 struct pe_hdr { struct
90 struct pe_hdr pe_hdr; in load() local
108 read(in, &pe_hdr, sizeof(pe_hdr)) != sizeof(pe_hdr) || in load()
120 switch ( (pe_hdr.signature == PE_SIGNATURE && in load()
121 pe_hdr.opt_hdr_size > sizeof(pe_hdr.opt_hdr)) * in load()
122 pe_hdr.opt_hdr.magic ) in load()
130 *image_base = ((uint64_t)base << 32) | pe_hdr.opt_hdr.data_rva; in load()
137 *sections = malloc(pe_hdr.section_count * sizeof(**sections)); in load()
145 pe_hdr.opt_hdr_size, in load()
148 pe_hdr.section_count * sizeof(**sections) ) in load()
[all …]
/xen/tools/debugger/kdd/
A Dkdd.c510 uint64_t pe_hdr = 0; in get_pe64_sections() local
521 &pe_hdr) != DOS_HDR_PE_SZ) in get_pe64_sections()
524 pe_hdr += filebase; in get_pe64_sections()
527 if (kdd_read_virtual(s, s->cpuid, pe_hdr + PE_NUM_SECTION_OFF, in get_pe64_sections()
536 if (kdd_read_virtual(s, s->cpuid, pe_hdr + PE_OPT_HDR_SZ_OFF, in get_pe64_sections()
541 sect_start = pe_hdr + PE_HDR_SZ + opt_hdr_sz; in get_pe64_sections()

Completed in 7 milliseconds