Lines Matching defs:ehdr
100 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
101 if (ehdr == NULL)
108 ehdr->e_shstrndx = ndx;
110 if (gelf_update_ehdr (elf, ehdr) == 0)
227 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
228 if (ehdr == NULL)
235 ehdr->e_ident[EI_DATA] = class == ELFCLASS64 ? ELFDATA2LSB : ELFDATA2MSB;
236 ehdr->e_ident[EI_OSABI] = ELFOSABI_GNU;
237 ehdr->e_type = ET_NONE;
238 ehdr->e_machine = EM_X86_64;
239 ehdr->e_version = EV_CURRENT;
241 if (gelf_update_ehdr (elf, ehdr) == 0)