Lines Matching defs:ehdr
118 __libelf_data_type (GElf_Ehdr *ehdr, int sh_type, GElf_Xword align)
122 if (sh_type == SHT_HASH && ehdr->e_ident[EI_CLASS] == ELFCLASS64)
124 return (SH_ENTSIZE_HASH (ehdr) == 4 ? ELF_T_WORD : ELF_T_XWORD);
273 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem);
274 if (unlikely (ehdr == NULL))
276 entsize = SH_ENTSIZE_HASH (ehdr);
369 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem);
370 if (unlikely (ehdr == NULL))
372 scn->rawdata.d.d_type = __libelf_data_type (ehdr, type, align);
384 at least an ehdr this will only trigger for alignment values > 64
402 || (offsetof (struct Elf, state.elf32.ehdr)
403 == offsetof (struct Elf, state.elf64.ehdr)))
405 elf->state.elf32.ehdr->e_ident[EI_VERSION];
408 elf->state.elf64.ehdr->e_ident[EI_VERSION];
457 || (offsetof (struct Elf, state.elf32.ehdr)
458 == offsetof (struct Elf, state.elf64.ehdr))
459 ? elf->state.elf32.ehdr->e_ident[EI_DATA]
460 : elf->state.elf64.ehdr->e_ident[EI_DATA]),