• Home
  • Raw
  • Download

Lines Matching refs:hdr

185 	for (i = 1; i < info->hdr->e_shnum; i++) {  in find_sec()
220 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec()
1365 ignore_undef_symbol(info->hdr->e_machine, name))) in simplify_symbols()
1399 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations()
1403 if (infosec >= info->hdr->e_shnum) in apply_relocations()
1479 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections()
1484 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections()
1519 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections()
1600 char *modinfo = (char *)info->hdr + infosec->sh_offset; in get_next_modinfo()
1702 if (info->len < sizeof(*(info->hdr))) { in elf_validity_check()
1707 if (memcmp(info->hdr->e_ident, ELFMAG, SELFMAG) != 0) { in elf_validity_check()
1711 if (info->hdr->e_type != ET_REL) { in elf_validity_check()
1713 info->hdr->e_type, ET_REL); in elf_validity_check()
1716 if (!elf_check_arch(info->hdr)) { in elf_validity_check()
1718 info->hdr->e_machine); in elf_validity_check()
1721 if (info->hdr->e_shentsize != sizeof(Elf_Shdr)) { in elf_validity_check()
1731 if (info->hdr->e_shoff >= info->len in elf_validity_check()
1732 || (info->hdr->e_shnum * sizeof(Elf_Shdr) > in elf_validity_check()
1733 info->len - info->hdr->e_shoff)) { in elf_validity_check()
1738 info->sechdrs = (void *)info->hdr + info->hdr->e_shoff; in elf_validity_check()
1743 if (info->hdr->e_shstrndx == SHN_UNDEF in elf_validity_check()
1744 || info->hdr->e_shstrndx >= info->hdr->e_shnum) { in elf_validity_check()
1746 info->hdr->e_shstrndx, info->hdr->e_shstrndx, in elf_validity_check()
1747 info->hdr->e_shnum); in elf_validity_check()
1751 strhdr = &info->sechdrs[info->hdr->e_shstrndx]; in elf_validity_check()
1763 info->secstrings = (void *)info->hdr + strhdr->sh_offset; in elf_validity_check()
1785 for (i = 1; i < info->hdr->e_shnum; i++) { in elf_validity_check()
1793 || shdr->sh_link >= info->hdr->e_shnum) { in elf_validity_check()
1796 info->hdr->e_shnum); in elf_validity_check()
1876 if (info->len < sizeof(*(info->hdr))) in copy_module_from_user()
1884 info->hdr = __vmalloc(info->len, GFP_KERNEL | __GFP_NOWARN); in copy_module_from_user()
1885 if (!info->hdr) in copy_module_from_user()
1888 if (copy_chunked_from_user(info->hdr, umod, info->len) != 0) { in copy_module_from_user()
1893 err = security_kernel_post_load_data((char *)info->hdr, info->len, in copy_module_from_user()
1897 vfree(info->hdr); in copy_module_from_user()
1907 vfree(info->hdr); in free_copy()
1917 for (i = 1; i < info->hdr->e_shnum; i++) { in rewrite_section_headers()
1924 shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset; in rewrite_section_headers()
1953 for (i = 1; i < info->hdr->e_shnum; i++) { in setup_load_info()
1957 info->strtab = (char *)info->hdr in setup_load_info()
1976 info->mod = (void *)info->hdr + info->sechdrs[info->index.mod].sh_offset; in setup_load_info()
2218 for (i = 0; i < info->hdr->e_shnum; i++) { in move_module()
2294 int __weak module_frob_arch_sections(Elf_Ehdr *hdr, in module_frob_arch_sections() argument
2334 err = module_frob_arch_sections(info->hdr, info->sechdrs, in layout_and_allocate()
2339 err = module_enforce_rwx_sections(info->hdr, info->sechdrs, in layout_and_allocate()
2398 int __weak module_finalize(const Elf_Ehdr *hdr, in module_finalize() argument
2418 return module_finalize(info->hdr, info->sechdrs, mod); in post_relocation()
2668 module_bug_finalize(info->hdr, info->sechdrs, mod); in complete_formation()
2669 module_cfi_finalize(info->hdr, info->sechdrs, mod); in complete_formation()
3012 info.hdr = buf; in SYSCALL_DEFINE3()