Home | History | Annotate | Download | only in libelf

Lines Matching refs:ehdr

86   ElfW2(LIBELFBITS,Ehdr) *ehdr;
91 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
98 assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
112 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr,
113 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
116 memcpy (elf->map_address + elf->start_offset, ehdr,
117 sizeof (ElfW2(LIBELFBITS,Ehdr)));
134 if (ehdr->e_phoff > ehdr->e_ehsize)
135 memset (elf->map_address + elf->start_offset + ehdr->e_ehsize,
136 __libelf_fill_byte, ehdr->e_phoff - ehdr->e_ehsize);
149 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff,
151 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1);
154 memcpy (elf->map_address + elf->start_offset + ehdr->e_phoff,
156 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum);
165 ehdr->e_phoff)
166 + elf_typesize (LIBELFBITS, ELF_T_PHDR, ehdr->e_phnum));
175 + ehdr->e_shoff);
176 char *shdr_end = shdr_start + ehdr->e_shnum * ehdr->e_shentsize;
186 ((char *) elf->map_address + elf->start_offset + ehdr->e_shoff);
293 + ehdr->e_shoff))
295 (char *) elf->map_address + elf->start_offset + ehdr->e_shoff
355 ElfW2(LIBELFBITS,Ehdr) *ehdr;
360 ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
365 ElfW2(LIBELFBITS,Ehdr) tmp_ehdr;
366 ElfW2(LIBELFBITS,Ehdr) *out_ehdr = ehdr;
370 assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
384 (*fctp) (&tmp_ehdr, ehdr, sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
392 sizeof (ElfW2(LIBELFBITS,Ehdr)), 0)
393 != sizeof (ElfW2(LIBELFBITS,Ehdr))))
417 if (ehdr->e_phoff > ehdr->e_ehsize
418 && unlikely (fill (elf->fildes, ehdr->e_ehsize,
419 ehdr->e_phoff - ehdr->e_ehsize, fillbuf, &filled)
435 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum);
444 sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum, 1);
453 * ehdr->e_phnum, ehdr->e_phoff)
454 != sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum))
471 last_offset = (ehdr->e_phoff
472 + sizeof (ElfW2(LIBELFBITS,Phdr)) * ehdr->e_phnum);
484 shdr_offset = elf->start_offset + ehdr->e_shoff;