| /linux/security/selinux/ss/ |
| H A D | policydb.h | 46 struct symtab permissions; /* common permissions */ 54 struct symtab permissions; /* class-specific permission symbol table */ 240 struct symtab symtab[SYM_NUM]; member 241 #define p_commons symtab[SYM_COMMONS] 242 #define p_classes symtab[SYM_CLASSES] 243 #define p_roles symtab[SYM_ROLES] 244 #define p_types symtab[SYM_TYPES] 245 #define p_users symtab[SYM_USERS] 246 #define p_bools symtab[SYM_BOOLS] 247 #define p_levels symtab[SYM_LEVELS] [all …]
|
| H A D | symtab.h | 16 struct symtab { struct 21 int symtab_init(struct symtab *s, u32 size); argument 23 int symtab_insert(struct symtab *s, char *name, void *datum); 24 void *symtab_search(struct symtab *s, const char *name);
|
| H A D | symtab.c | 42 int symtab_init(struct symtab *s, u32 size) in symtab_init() 48 int symtab_insert(struct symtab *s, char *name, void *datum) in symtab_insert() 53 void *symtab_search(struct symtab *s, const char *name) in symtab_search()
|
| H A D | policydb.c | 697 static void symtab_hash_eval(struct symtab *s) in symtab_hash_eval() 710 static inline void symtab_hash_eval(struct symtab *s) in symtab_hash_eval() 739 symtab_hash_eval(p->symtab); in policydb_index() 767 p->sym_val_to_name[i] = kvcalloc(p->symtab[i].nprim, in policydb_index() 772 rc = hashtab_map(&p->symtab[i].table, index_f[i], p); in policydb_index() 793 hashtab_map(&p->symtab[i].table, destroy_f[i], NULL); in policydb_destroy() 794 hashtab_destroy(&p->symtab[i].table); in policydb_destroy() 1126 static int perm_read(struct policydb *p, struct symtab *s, struct policy_file *fp) in perm_read() 1159 static int common_read(struct policydb *p, struct symtab *s, struct policy_file *fp) in common_read() 1324 static int class_read(struct policydb *p, struct symtab *s, struct policy_file *fp) in class_read() [all …]
|
| /linux/scripts/ |
| H A D | insert-sys-cert.c | 133 static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name) in find_elf_symbol() argument 142 link = symtab->sh_link; in find_elf_symbol() 143 symtab_start = (void *)hdr + symtab->sh_offset; in find_elf_symbol() 144 n = symtab->sh_size / symtab->sh_entsize; in find_elf_symbol() 157 static void get_symbol_from_table(Elf_Ehdr *hdr, Elf_Shdr *symtab, in get_symbol_from_table() argument 169 elf_sym = find_elf_symbol(hdr, symtab, name); in get_symbol_from_table() 286 Elf_Shdr *symtab = NULL; in main() local 346 symtab = get_symbol_table(hdr); in main() 347 if (!symtab) { in main() 368 get_symbol_from_table(hdr, symtab, CERT_SYM, &cert_sym); in main() [all …]
|
| H A D | recordmcount.h | 191 static unsigned int get_symindex(Elf_Sym const *sym, Elf32_Word const *symtab, in get_symindex() argument 202 offset = (unsigned long)sym - (unsigned long)symtab; in get_symindex() 237 unsigned const nhdr, Elf32_Word **symtab, in find_symtab() argument 243 *symtab = NULL; in find_symtab() 248 *symtab = (void *)ehdr + relhdr->sh_offset; in find_symtab() 252 if (*symtab && *symtab_shndx) in find_symtab() 521 Elf32_Word const *symtab, in find_secsym_ndx() argument 534 if (txtndx == get_symindex(symp, symtab, symtab_shndx) in find_secsym_ndx() 619 Elf32_Word *symtab; in do_func() local 652 find_symtab(ehdr, shdr0, nhdr, &symtab, &symtab_shndx); in do_func() [all …]
|
| /linux/scripts/gcc-plugins/ |
| H A D | gcc-common.h | 200 #define cgraph_n_nodes symtab->cgraph_count 201 #define cgraph_max_uid symtab->cgraph_max_uid 219 symtab->change_decl_assembler_name(decl, name); in change_decl_assembler_name() 269 return symtab->add_cgraph_insertion_hook(hook, data); in cgraph_add_function_insertion_hook() 274 symtab->remove_cgraph_insertion_hook(entry); in cgraph_remove_function_insertion_hook() 279 return symtab->add_cgraph_removal_hook(hook, data); in cgraph_add_node_removal_hook() 284 symtab->remove_cgraph_removal_hook(entry); in cgraph_remove_node_removal_hook() 289 return symtab->add_cgraph_duplication_hook(hook, data); in cgraph_add_node_duplication_hook() 294 symtab->remove_cgraph_duplication_hook(entry); in cgraph_remove_node_duplication_hook() 299 symtab->call_cgraph_duplication_hooks(node, node2); in cgraph_call_node_duplication_hooks() [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | module.c | 69 Elf64_Shdr *esechdrs, *symtab, *s, *got; in module_frob_arch_sections() local 73 symtab = got = NULL; in module_frob_arch_sections() 80 symtab = s; in module_frob_arch_sections() 86 if (!symtab) { in module_frob_arch_sections() 95 nsyms = symtab->sh_size / sizeof(Elf64_Sym); in module_frob_arch_sections() 139 Elf64_Sym *symtab, *sym; in apply_relocate_add() local 147 symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr; in apply_relocate_add() 164 sym = symtab + r_sym; in apply_relocate_add()
|
| /linux/tools/perf/util/ |
| H A D | genelf.c | 57 static Elf_Sym symtab[]={ variable 313 symtab[1].st_size = csize; in jit_write_elf() 314 symtab[1].st_value = GEN_ELF_TEXT_OFFSET; in jit_write_elf() 330 d->d_buf = symtab; in jit_write_elf() 332 d->d_size = sizeof(symtab); in jit_write_elf() 347 tmp = realloc(build_id_data, build_id_data_len + sizeof(symtab)); in jit_write_elf() 352 memcpy(tmp + build_id_data_len, symtab, sizeof(symtab)); in jit_write_elf() 354 build_id_data_len += sizeof(symtab); in jit_write_elf()
|
| H A D | symsrc.h | 28 Elf_Scn *symtab; member
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | parse_vdso.c | 55 ELF(Sym) *symtab; 139 vdso_info.symtab = 0; in vdso_init_from_sysinfo_ehdr() 150 vdso_info.symtab = (ELF(Sym) *) in vdso_init_from_sysinfo_ehdr() 176 if (!vdso_info.symstrings || !vdso_info.symtab || in vdso_init_from_sysinfo_ehdr() 279 ELF(Sym) *sym = &vdso_info.symtab[i]; in vdso_sym() 291 ELF(Sym) *sym = &vdso_info.symtab[i]; in vdso_sym()
|
| /linux/kernel/module/ |
| H A D | kallsyms.c | 107 * We only allocate and copy the strings needed by the parts of symtab 166 * We use the full symtab and strtab which layout_symtab arranged to 184 kallsyms->symtab = (void *)symsec->sh_addr; in add_kallsyms() 194 mod->core_kallsyms.symtab = dst = data_base + info->symoffs; in add_kallsyms() 198 src = kallsyms->symtab; in add_kallsyms() 246 return kallsyms->strtab + kallsyms->symtab[symnum].st_name; 271 bestval = kallsyms_symbol_value(&kallsyms->symtab[best]); in find_kallsyms_symbol() 278 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol() 389 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym() 410 const Elf_Sym *sym = &kallsyms->symtab[ in module_get_kallsym() [all...] |
| H A D | livepatch.c | 58 mod->klp_info->sechdrs[symndx].sh_addr = (unsigned long)mod->core_kallsyms.symtab; in copy_module_elf()
|
| /linux/arch/mips/vdso/ |
| H A D | genvdso.h | 61 void *shdrs, *symtab; in FUNC() local 96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC() 110 sym = symtab + (j * st_entsize); in FUNC()
|
| /linux/arch/x86/tools/ |
| H A D | relocs.c | 46 Elf_Sym *symtab; member 331 Elf_Sym *symtab = secs[shsymtabndx].symtab; in sym_index() local 340 offset = (unsigned long)sym - (unsigned long)symtab; in sym_index() 493 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 494 if (!sec->symtab) in read_symtabs() 500 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_symtabs() 504 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() 581 sym = &sec->symtab[j]; in print_absolute_symbols() 631 sh_symtab = sec_symtab->symtab; in print_absolute_relocs() 725 sh_symtab = sec_symtab->symtab; in walk_relocs()
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_rtsym.c | 44 struct nfp_rtsym symtab[]; member 130 cache->strtab = (void *)&cache->symtab[cache->num]; in __nfp_rtsym_table_read() 143 &cache->symtab[n], &rtsymtab[n]); in __nfp_rtsym_table_read() 183 return &rtbl->symtab[idx]; in nfp_rtsym_get() 202 if (strcmp(name, rtbl->symtab[n].name) == 0) in nfp_rtsym_lookup() 203 return &rtbl->symtab[n]; in nfp_rtsym_lookup()
|
| /linux/tools/testing/selftests/sgx/ |
| H A D | load.c | 139 Elf64_Sym *symtab = NULL; in encl_get_entry() local 151 symtab = (Elf64_Sym *)((char *)encl->bin + sections[i].sh_offset); in encl_get_entry() 164 if (!symtab || !sym_names) in encl_get_entry() 168 Elf64_Sym *sym = &symtab[i]; in encl_get_entry()
|
| H A D | main.c | 70 static bool vdso_get_symtab(void *addr, struct vdso_symtab *symtab) in vdso_get_symtab() argument 74 symtab->elf_symtab = vdso_get_dyn(addr, dyntab, DT_SYMTAB); in vdso_get_symtab() 75 if (!symtab->elf_symtab) in vdso_get_symtab() 78 symtab->elf_symstrtab = vdso_get_dyn(addr, dyntab, DT_STRTAB); in vdso_get_symtab() 79 if (!symtab->elf_symstrtab) in vdso_get_symtab() 82 symtab->elf_hashtab = vdso_get_dyn(addr, dyntab, DT_HASH); in vdso_get_symtab() 83 if (!symtab->elf_hashtab) in vdso_get_symtab() 115 static Elf64_Sym *vdso_symtab_get(struct vdso_symtab *symtab, const char *name) in vdso_symtab_get() argument 117 Elf64_Word bucketnum = symtab->elf_hashtab[0]; in vdso_symtab_get() 118 Elf64_Word *buckettab = &symtab->elf_hashtab[2]; in vdso_symtab_get() [all …]
|
| /linux/arch/mips/boot/tools/ |
| H A D | relocs.c | 27 Elf_Sym *symtab; member 328 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 329 if (!sec->symtab) in read_symtabs() 337 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != in read_symtabs() 342 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() 493 sh_symtab = sec_symtab->symtab; in walk_relocs()
|
| /linux/arch/riscv/kernel/ |
| H A D | machine_kexec_file.c | 148 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() argument 157 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 169 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
|
| /linux/arch/s390/kernel/ |
| H A D | machine_kexec_file.c | 312 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() argument 322 strtab = (char *)pi->ehdr + sechdrs[symtab->sh_link].sh_offset; in arch_kexec_apply_relocations_add() 333 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
|
| /linux/arch/riscv/include/asm/ |
| H A D | kexec.h | 65 const Elf_Shdr *symtab);
|
| /linux/kernel/ |
| H A D | kexec_file.c | 1038 const Elf_Shdr *symtab; in kexec_apply_relocations() local 1058 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations() 1067 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 1077 relsec, symtab); in kexec_apply_relocations() 1080 relsec, symtab); in kexec_apply_relocations()
|
| /linux/include/linux/ |
| H A D | kexec.h | 289 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() argument 308 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations() argument
|
| /linux/security/selinux/ |
| H A D | Makefile | 19 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \
|