Home | History | Annotate | Download | only in src

Lines Matching defs:ehdr

258   GElf_Ehdr *ehdr = gelf_getehdr (inelf, &ehdr_mem);
259 ELF_CHECK (gelf_update_ehdr (outelf, ehdr),
262 if (ehdr->e_phnum > 0)
264 ELF_CHECK (gelf_newphdr (outelf, ehdr->e_phnum),
268 for (uint_fast16_t i = 0; i < ehdr->e_phnum; ++i)
960 } ehdr;
963 .d_buf = &ehdr,
964 .d_size = sizeof ehdr,
977 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
979 phnum = ehdr.e32.e_phnum;
980 shnum = ehdr.e32.e_shnum;
984 phnum = ehdr.e64.e_phnum;
985 shnum = ehdr.e64.e_shnum;
1012 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
1801 GElf_Ehdr *ehdr = gelf_getehdr (unstripped, &ehdr_mem);
1802 ELF_CHECK (ehdr != NULL, _("cannot get ELF header: %s"));
1806 ehdr->e_shnum = unstripped_shnum;
1807 ehdr->e_shoff = offset;
1808 offset += unstripped_shnum * ehdr->e_shentsize;
1809 ELF_CHECK (gelf_update_ehdr (unstripped, ehdr),