Lines Matching refs:index
655 Elf_Shdr *pcpusec = &info->sechdrs[info->index.pcpu]; in percpu_modalloc()
752 if (info->sechdrs[info->index.pcpu].sh_size != 0) in percpu_modalloc()
1308 unsigned int versindex = info->index.vers; in check_version()
2182 symndx = info->index.sym; in copy_module_elf()
2377 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in simplify_symbols()
2432 if (sym[i].st_shndx == info->index.pcpu) in simplify_symbols()
2467 info->index.sym, i, mod); in apply_relocations()
2470 info->index.sym, i, mod); in apply_relocations()
2627 Elf_Shdr *infosec = &info->sechdrs[info->index.info]; in get_next_modinfo()
2711 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type()
2774 Elf_Shdr *symsect = info->sechdrs + info->index.sym; in layout_symtab()
2775 Elf_Shdr *strsect = info->sechdrs + info->index.str; in layout_symtab()
2782 info->index.sym) | INIT_OFFSET_MASK; in layout_symtab()
2792 info->index.pcpu)) { in layout_symtab()
2809 info->index.str) | INIT_OFFSET_MASK; in layout_symtab()
2833 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in add_kallsyms()
2841 mod->kallsyms->strtab = (void *)info->sechdrs[info->index.str].sh_addr; in add_kallsyms()
2856 info->index.pcpu)) { in add_kallsyms()
3205 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3206 info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC; in rewrite_section_headers()
3224 info->index.info = find_sec(info, ".modinfo"); in setup_load_info()
3225 if (info->index.info) in setup_load_info()
3231 info->index.sym = i; in setup_load_info()
3232 info->index.str = info->sechdrs[i].sh_link; in setup_load_info()
3234 + info->sechdrs[info->index.str].sh_offset; in setup_load_info()
3239 if (info->index.sym == 0) { in setup_load_info()
3245 info->index.mod = find_sec(info, ".gnu.linkonce.this_module"); in setup_load_info()
3246 if (!info->index.mod) { in setup_load_info()
3252 info->mod = (void *)info->hdr + info->sechdrs[info->index.mod].sh_offset; in setup_load_info()
3262 info->index.vers = 0; /* Pretend no __versions section! */ in setup_load_info()
3264 info->index.vers = find_sec(info, "__versions"); in setup_load_info()
3266 info->index.pcpu = find_pcpusec(info); in setup_load_info()
3284 } else if (!same_magic(modmagic, vermagic, info->index.vers)) { in check_modinfo()
3588 info->sechdrs[info->index.pcpu].sh_flags &= ~(unsigned long)SHF_ALLOC; in layout_and_allocate()
3620 mod = (void *)info->sechdrs[info->index.mod].sh_addr; in layout_and_allocate()
3649 percpu_modcopy(mod, (void *)info->sechdrs[info->index.pcpu].sh_addr, in post_relocation()
3650 info->sechdrs[info->index.pcpu].sh_size); in post_relocation()