• Home
  • Raw
  • Download

Lines Matching refs:hdr

328 	if (info->hdr->e_type != ET_REL)  in sym_get_data_by_offset()
331 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
481 Elf_Ehdr *hdr; in parse_elf() local
487 hdr = grab_file(filename, &info->size); in parse_elf()
488 if (!hdr) { in parse_elf()
497 info->hdr = hdr; in parse_elf()
498 if (info->size < sizeof(*hdr)) { in parse_elf()
503 if ((hdr->e_ident[EI_MAG0] != ELFMAG0) || in parse_elf()
504 (hdr->e_ident[EI_MAG1] != ELFMAG1) || in parse_elf()
505 (hdr->e_ident[EI_MAG2] != ELFMAG2) || in parse_elf()
506 (hdr->e_ident[EI_MAG3] != ELFMAG3)) { in parse_elf()
511 hdr->e_type = TO_NATIVE(hdr->e_type); in parse_elf()
512 hdr->e_machine = TO_NATIVE(hdr->e_machine); in parse_elf()
513 hdr->e_version = TO_NATIVE(hdr->e_version); in parse_elf()
514 hdr->e_entry = TO_NATIVE(hdr->e_entry); in parse_elf()
515 hdr->e_phoff = TO_NATIVE(hdr->e_phoff); in parse_elf()
516 hdr->e_shoff = TO_NATIVE(hdr->e_shoff); in parse_elf()
517 hdr->e_flags = TO_NATIVE(hdr->e_flags); in parse_elf()
518 hdr->e_ehsize = TO_NATIVE(hdr->e_ehsize); in parse_elf()
519 hdr->e_phentsize = TO_NATIVE(hdr->e_phentsize); in parse_elf()
520 hdr->e_phnum = TO_NATIVE(hdr->e_phnum); in parse_elf()
521 hdr->e_shentsize = TO_NATIVE(hdr->e_shentsize); in parse_elf()
522 hdr->e_shnum = TO_NATIVE(hdr->e_shnum); in parse_elf()
523 hdr->e_shstrndx = TO_NATIVE(hdr->e_shstrndx); in parse_elf()
524 sechdrs = (void *)hdr + hdr->e_shoff; in parse_elf()
528 if (hdr->e_shoff > info->size) { in parse_elf()
530 (unsigned long)hdr->e_shoff, filename, info->size); in parse_elf()
534 if (hdr->e_shnum == SHN_UNDEF) { in parse_elf()
542 info->num_sections = hdr->e_shnum; in parse_elf()
544 if (hdr->e_shstrndx == SHN_XINDEX) { in parse_elf()
548 info->secindex_strings = hdr->e_shstrndx; in parse_elf()
565 secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset; in parse_elf()
574 sizeof(*hdr)); in parse_elf()
581 info->modinfo = (void *)hdr + sechdrs[i].sh_offset; in parse_elf()
597 info->symtab_start = (void *)hdr + in parse_elf()
599 info->symtab_stop = (void *)hdr + in parse_elf()
602 info->strtab = (void *)hdr + in parse_elf()
609 info->symtab_shndx_start = (void *)hdr + in parse_elf()
611 info->symtab_shndx_stop = (void *)hdr + in parse_elf()
643 release_file(info->hdr, info->size); in parse_elf_finish()
654 if (info->hdr->e_machine == EM_PPC) in ignore_undef_symbol()
663 if (info->hdr->e_machine == EM_PPC64) in ignore_undef_symbol()
724 if (info->hdr->e_machine == EM_SPARC || in handle_symbol()
725 info->hdr->e_machine == EM_SPARCV9) { in handle_symbol()
1771 if (elf->hdr->e_type == ET_EXEC) in addend_386_rel()
1826 r->r_addend = (int)(long)(elf->hdr + in addend_arm_rel()
1868 Elf_Rela *start = (void *)elf->hdr + sechdr->sh_offset; in section_rela()
1880 if (elf->hdr->e_machine == EM_MIPS) { in section_rela()
1914 Elf_Rel *start = (void *)elf->hdr + sechdr->sh_offset; in section_rel()
1926 if (elf->hdr->e_machine == EM_MIPS) { in section_rel()
1941 switch (elf->hdr->e_machine) { in section_rel()