Lines Matching full:got
15 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry()
17 struct got_entry *got = get_got_entry(val, got_sec); in module_emit_got_entry() local
19 if (got) in module_emit_got_entry()
20 return (unsigned long)got; in module_emit_got_entry()
23 got = (struct got_entry *)got_sec->shdr->sh_addr; in module_emit_got_entry()
24 got[i] = emit_got_entry(val); in module_emit_got_entry()
29 return (unsigned long)&got[i]; in module_emit_got_entry()
98 * Find the empty .got and .plt sections. in module_frob_arch_sections()
103 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
104 mod->arch.got.shdr = sechdrs + i; in module_frob_arch_sections()
105 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got.plt")) in module_frob_arch_sections()
113 if (!mod->arch.got.shdr) { in module_frob_arch_sections()
114 pr_err("%s: module GOT section(s) missing\n", mod->name); in module_frob_arch_sections()
118 pr_err("%s: module GOT.PLT section(s) missing\n", mod->name); in module_frob_arch_sections()
145 mod->arch.got.shdr->sh_type = SHT_NOBITS; in module_frob_arch_sections()
146 mod->arch.got.shdr->sh_flags = SHF_ALLOC; in module_frob_arch_sections()
147 mod->arch.got.shdr->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
148 mod->arch.got.shdr->sh_size = (num_gots + 1) * sizeof(struct got_entry); in module_frob_arch_sections()
149 mod->arch.got.num_entries = 0; in module_frob_arch_sections()
150 mod->arch.got.max_entries = num_gots; in module_frob_arch_sections()