Home | History | Annotate | Download | only in libelf

Lines Matching refs:Ehdr

129   ElfW2(LIBELFBITS,Ehdr) *ehdr;
133 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
140 assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
155 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr,
156 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
159 memcpy (elf->map_address + elf->start_offset, ehdr,
160 sizeof (ElfW2(LIBELFBITS,Ehdr)));
177 if (ehdr->e_phoff > ehdr->e_ehsize)
178 memset (elf->map_address + elf->start_offset + ehdr->e_ehsize,
179 __libelf_fill_byte, ehdr->e_phoff - ehdr->e_ehsize);
193 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff,
195 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1);
198 memcpy (elf->map_address + elf->start_offset + ehdr->e_phoff,
200 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum);
209 ehdr->e_phoff)
210 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum));
218 + ehdr->e_shoff);
219 char *const shdr_end = shdr_start + ehdr->e_shnum * ehdr->e_shentsize;
376 + ehdr->e_shoff))
378 (char *) elf->map_address + elf->start_offset + ehdr->e_shoff
416 + elf->start_offset + ehdr->e_shoff
417 + ehdr->e_shentsize * shnum);
475 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
480 ElfW2(LIBELFBITS,Ehdr) tmp_ehdr;
481 ElfW2(LIBELFBITS,Ehdr) *out_ehdr = ehdr;
485 assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
500 (*fctp) (&tmp_ehdr, ehdr, sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
508 sizeof (ElfW2(LIBELFBITS,Ehdr)), 0)
509 != sizeof (ElfW2(LIBELFBITS,Ehdr))))
533 if (ehdr->e_phoff > ehdr->e_ehsize
534 && unlikely (fill (elf->fildes, ehdr->e_ehsize,
535 ehdr->e_phoff - ehdr->e_ehsize, fillbuf, &filled)
552 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum);
561 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1);
568 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum;
570 phdr_size, ehdr->e_phoff)
589 last_offset = (ehdr->e_phoff
590 + sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum);
595 off_t shdr_offset = elf->start_offset + ehdr->e_shoff;