Lines Matching refs:ehdr
93 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
94 if (ehdr == NULL)
101 ehdr->e_ident[EI_DATA] = class == ELFCLASS64 ? ELFDATA2LSB : ELFDATA2MSB;
102 ehdr->e_ident[EI_OSABI] = ELFOSABI_GNU;
103 ehdr->e_type = ET_NONE;
104 ehdr->e_machine = EM_X86_64;
105 ehdr->e_version = EV_CURRENT;
107 if (gelf_update_ehdr (elf, ehdr) == 0)
181 ehdr->e_shstrndx = ndx;
183 if (gelf_update_ehdr (elf, ehdr) == 0)