Lines Matching refs:ehdr
68 check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp) in check_section() argument
98 const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx, in check_section()
217 global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr) in global_read() argument
222 result = check_section (result, ehdr, scn, false); in global_read()
229 scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp) in scngrp_read() argument
278 result = check_section (result, ehdr, scn, true); in scngrp_read()
290 GElf_Ehdr *ehdr; in dwarf_begin_elf() local
295 ehdr = gelf_getehdr (elf, &ehdr_mem); in dwarf_begin_elf()
296 if (ehdr == NULL) in dwarf_begin_elf()
322 if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr->e_ident[EI_DATA] == ELFDATA2MSB) in dwarf_begin_elf()
323 || (BYTE_ORDER == BIG_ENDIAN && ehdr->e_ident[EI_DATA] == ELFDATA2LSB)) in dwarf_begin_elf()
345 return global_read (result, elf, ehdr); in dwarf_begin_elf()
347 return scngrp_read (result, elf, ehdr, scngrp); in dwarf_begin_elf()