Home | History | Annotate | Download | only in qemu

Lines Matching defs:phdr

18 static void glue(bswap_phdr, SZ)(struct elf_phdr *phdr)
20 bswap32s(&phdr->p_type); /* Segment type */
21 bswapSZs(&phdr->p_offset); /* Segment file offset */
22 bswapSZs(&phdr->p_vaddr); /* Segment virtual address */
23 bswapSZs(&phdr->p_paddr); /* Segment physical address */
24 bswapSZs(&phdr->p_filesz); /* Segment size in file */
25 bswapSZs(&phdr->p_memsz); /* Segment size in memory */
26 bswap32s(&phdr->p_flags); /* Segment flags */
27 bswapSZs(&phdr->p_align); /* Segment alignment */
185 struct elf_phdr *phdr = NULL, *ph;
218 size = ehdr.e_phnum * sizeof(phdr[0]);
220 phdr = qemu_mallocz(size);
221 if (!phdr)
223 if (read(fd, phdr, size) != size)
227 ph = &phdr[i];
234 ph = &phdr[i];
261 qemu_free(phdr);
269 qemu_free(phdr);