Lines Matching refs:ehdr
130 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
147 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr,
150 else if (elf->map_address + elf->start_offset != ehdr)
151 memcpy (elf->map_address + elf->start_offset, 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);
188 (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff,
193 memmove (elf->map_address + elf->start_offset + ehdr->e_phoff,
208 ehdr->e_phoff)
225 + ehdr->e_shoff);
226 char *const shdr_end = shdr_start + shnum * ehdr->e_shentsize;
434 + ehdr->e_shoff))
436 (char *) elf->map_address + elf->start_offset + ehdr->e_shoff
479 + elf->start_offset + ehdr->e_shoff
480 + ehdr->e_shentsize * shnum);
539 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
545 ElfW2(LIBELFBITS,Ehdr) *out_ehdr = ehdr;
559 (*fctp) (&tmp_ehdr, ehdr, sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
600 if (ehdr->e_phoff > ehdr->e_ehsize
601 && unlikely (fill (elf->fildes, ehdr->e_ehsize,
602 ehdr->e_phoff - ehdr->e_ehsize, fillbuf, &filled)
632 phdr_size, ehdr->e_phoff)
655 last_offset = (ehdr->e_phoff + sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum);
664 int64_t shdr_offset = elf->start_offset + ehdr->e_shoff;