| /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() 766 p->sym_val_to_name[i] = kvcalloc(p->symtab[i].nprim, in policydb_index() 771 rc = hashtab_map(&p->symtab[i].table, index_f[i], p); in policydb_index() 792 hashtab_map(&p->symtab[i].table, destroy_f[i], NULL); in policydb_destroy() 793 hashtab_destroy(&p->symtab[i].table); in policydb_destroy() 1125 static int perm_read(struct policydb *p, struct symtab *s, struct policy_file *fp) in perm_read() 1158 static int common_read(struct policydb *p, struct symtab *s, struct policy_file *fp) in common_read() 1321 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/objtool/ |
| H A D | elf.c | 542 struct section *symtab, *symtab_shndx, *sec; in read_symbols() local 549 symtab = find_section_by_name(elf, ".symtab"); in read_symbols() 550 if (symtab) { in read_symbols() 555 symbols_nr = sec_num_entries(symtab); in read_symbols() 583 if (!gelf_getsymshndx(symtab->data, shndx_data, i, &sym->sym, in read_symbols() 589 sym->name = elf_strptr(elf->elf, symtab->sh.sh_link, in read_symbols() 685 struct section *symtab, *sec; in mark_group_syms() local 688 symtab = find_section_by_name(elf, ".symtab"); in mark_group_syms() 689 if (!symtab) { in mark_group_syms() 696 sec->sh.sh_link == symtab->idx) { in mark_group_syms() [all …]
|
| /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/tools/perf/util/ |
| H A D | genelf.c | 57 static Elf_Sym symtab[]={ variable 326 symtab[1].st_size = csize; in jit_write_elf() 327 symtab[1].st_value = GEN_ELF_TEXT_OFFSET; in jit_write_elf() 343 d->d_buf = symtab; in jit_write_elf() 345 d->d_size = sizeof(symtab); in jit_write_elf() 360 blake2s_update_tagged(&ctx, TAG_SYMTAB, symtab, sizeof(symtab)); in jit_write_elf()
|
| H A D | symsrc.h | 28 Elf_Scn *symtab; member
|
| /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() 384 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym() 405 const Elf_Sym *sym = &kallsyms->symtab[ in module_get_kallsym() [all...] |
| /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/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/kernel/debug/kdb/ |
| H A D | kdb_main.c | 481 kdb_symtab_t symtab; in kdbgetaddrarg() local 530 found = kdbgetsymval(symname, &symtab); in kdbgetaddrarg() 532 addr = symtab.sym_start; in kdbgetaddrarg() 541 found = kdbnearsym(addr, &symtab); in kdbgetaddrarg() 550 *offset = addr - symtab.sym_start; in kdbgetaddrarg() 1452 kdb_symtab_t symtab; in kdb_md_line() local 1473 kdbnearsym(word, &symtab); in kdb_md_line() 1475 memset(&symtab, 0, sizeof(symtab)); in kdb_md_line() 1476 if (symtab.sym_name) { in kdb_md_line() 1477 kdb_symbol_print(word, &symtab, 0); in kdb_md_line() [all …]
|
| /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 329 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 330 if (!sec->symtab) in read_symtabs() 338 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != in read_symtabs() 343 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() 494 sh_symtab = sec_symtab->symtab; in walk_relocs()
|
| /linux/tools/lib/bpf/ |
| H A D | linker.c | 337 struct dst_sec *symtab = &linker->secs[linker->symtab_sec_idx]; in add_new_sym() local 339 size_t sym_cnt = symtab->sec_sz / sizeof(*sym); in add_new_sym() 341 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym() 348 symtab->raw_data = syms; in add_new_sym() 349 symtab->sec_sz += sizeof(*sym); in add_new_sym() 350 symtab->shdr->sh_size += sizeof(*sym); in add_new_sym() 351 symtab->data->d_size += sizeof(*sym); in add_new_sym() 1407 struct src_sec *symtab = &obj->secs[obj->symtab_sec_idx]; in linker_append_elf_syms() local 1408 Elf64_Sym *sym = symtab->data->d_buf; in linker_append_elf_syms() 1409 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize, err; in linker_append_elf_syms() [all …]
|
| /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/riscv/include/asm/ |
| H A D | kexec.h | 65 const Elf_Shdr *symtab);
|
| /linux/kernel/ |
| H A D | kexec_file.c | 890 * Return: pointer to symbol in read-only symtab on success, NULL on error. 1110 const Elf_Shdr *symtab; in kexec_load_purgatory() 1130 symtab = sechdrs + relsec->sh_link; 1136 * symtab->sh_link contain section header index of associated 1139 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_purgatory_find_symbol() 1149 relsec, symtab); in kexec_purgatory_find_symbol() 1152 relsec, symtab); in kexec_purgatory_find_symbol() 1038 const Elf_Shdr *symtab; kexec_apply_relocations() local
|
| /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
|