Home
last modified time | relevance | path

Searched refs:sym (Results 76 – 100 of 487) sorted by relevance

12345678910>>...20

/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsunwmove.c49 Sym *sym = sdp->sd_sym; in make_mvsections() local
52 if (sym->st_shndx == SHN_COMMON) in make_mvsections()
53 align_val = sym->st_value; in make_mvsections()
62 sym->st_value) + sym->st_size; in make_mvsections()
195 Sym *sym; in ld_process_move() local
241 sym = sdp->sd_sym; in ld_process_move()
260 (ELF_ST_BIND(sym->st_info) == STB_LOCAL) && in ld_process_move()
282 if ((sym->st_shndx != SHN_UNDEF) && in ld_process_move()
283 (sym->st_shndx < SHN_LOPROC)) { in ld_process_move()
286 isc = ifile->ifl_isdesc[ sym->st_shndx]; in ld_process_move()
[all …]
H A Dsyms.c239 Sym *sym; in ld_sym_nodirect() local
678 Sym *sym; in sym_add_spec() local
745 sym->st_size = 0; in sym_add_spec()
746 sym->st_value = 0; in sym_add_spec()
1288 Sym *sym; in ld_sym_validate() local
1661 sym->st_value) + sym->st_size; in ld_sym_validate()
1667 sym->st_value) + sym->st_size; in ld_sym_validate()
2009 EC_XWORD(sym->st_value), EC_XWORD(sym->st_size)); in issue_badaddr_msg()
2176 for (sym++, ndx = 1; ndx < local; sym++, ndx++) { in ld_sym_process()
2502 sym += local; in ld_sym_process()
[all …]
H A Dmachsym.sparc.c169 if (ELF_ST_TYPE(sym->st_info) != STT_SPARC_REGISTER) in ld_is_regsym_sparc()
175 if ((sym->st_value < STO_SPARC_REGISTER_G1) || in ld_is_regsym_sparc()
176 (sym->st_value > STO_SPARC_REGISTER_G7)) { in ld_is_regsym_sparc()
178 ifl->ifl_name, symsecname, symndx, EC_XWORD(sym->st_value)); in ld_is_regsym_sparc()
194 if (sym->st_name == 0) { in ld_is_regsym_sparc()
198 if ((ELF_ST_BIND(sym->st_info) != STB_GLOBAL) || in ld_is_regsym_sparc()
204 conv_sym_SPARC_value(sym->st_value, 0, &inv_buf)); in ld_is_regsym_sparc()
212 name = registers[sym->st_value]; in ld_is_regsym_sparc()
214 name = strs + sym->st_name; in ld_is_regsym_sparc()
224 ld_reg_find_sparc(Sym *sym, Ofl_desc *ofl) in ld_reg_find_sparc() argument
[all …]
/illumos-gate/usr/src/tools/ctf/common/
H A Dsymbol.c33 ignore_symbol(GElf_Sym *sym, const char *name) in ignore_symbol() argument
35 uchar_t type = GELF_ST_TYPE(sym->st_info); in ignore_symbol()
41 if (sym->st_shndx == SHN_UNDEF || sym->st_name == 0) in ignore_symbol()
56 if (type == STT_OBJECT && sym->st_shndx == SHN_ABS && in ignore_symbol()
57 sym->st_value == 0) in ignore_symbol()
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_free_strict.c36 set_state(my_id, sm->name, sm->sym, &ok); in ok_to_use()
42 set_state(my_id, cur->name, cur->sym, &ok); in pre_merge_hook()
244 struct symbol *sym; in set_param_freed() local
255 name = get_variable_from_key(arg, key, &sym); in set_param_freed()
256 if (!name || !sym) in set_param_freed()
260 sm = get_sm_state(my_id, name, sym); in set_param_freed()
267 set_state(my_id, name, sym, &freed); in set_param_freed()
288 state = __get_state(my_id, start, sym); in parent_is_free_var_sym_strict()
297 struct symbol *sym; in parent_is_free_strict() local
302 var = expr_to_var_sym(expr, &sym); in parent_is_free_strict()
[all …]
H A Dcheck_kernel.c60 if (!sym || !sym->ident) in hack_ERR_PTR()
267 struct symbol *sym; in find_module_init_exit() local
281 if (sym->type != SYM_NODE) in find_module_init_exit()
285 fn = get_base_type(sym); in find_module_init_exit()
290 if (!sym->ident) in find_module_init_exit()
316 } END_FOR_EACH_PTR_REVERSE(sym); in find_module_init_exit()
321 struct symbol *sym; in match_end_file() local
327 if (!sym->scope) in match_end_file()
331 } END_FOR_EACH_PTR_REVERSE(sym); in match_end_file()
336 struct symbol *sym, *val; in get_val_expr() local
[all …]
H A Dcheck_free.c36 set_state(my_id, sm->name, sm->sym, &ok); in ok_to_use()
42 set_state(my_id, cur->name, cur->sym, &ok); in pre_merge_hook()
228 struct symbol *sym; in set_param_freed() local
231 name = get_variable_from_key(arg, key, &sym); in set_param_freed()
232 if (!name || !sym) in set_param_freed()
235 set_state(my_id, name, sym, &freed); in set_param_freed()
259 state = __get_state(my_id, start, sym); in parent_is_free_var_sym()
268 struct symbol *sym; in parent_is_free() local
273 var = expr_to_var_sym(expr, &sym); in parent_is_free()
274 if (!var || !sym) in parent_is_free()
[all …]
H A Dsmatch_integer_overflow.c41 name = expr_to_chunk_sym_vsl(expr, sym, vsl); in save_links()
48 store_link(link_id, vs->var, vs->sym, name, *sym); in save_links()
59 struct symbol *sym; in match_divide() local
89 name = save_links(binop, &sym, &vsl); in match_divide()
101 struct symbol *sym; in match_overflow_to_less_than() local
124 name = save_links(left, &sym, &vsl); in match_overflow_to_less_than()
186 struct symbol *sym; in can_integer_overflow_expr() local
196 name = expr_to_known_chunk_sym(expr, &sym); in can_integer_overflow_expr()
197 if (!name || !sym) in can_integer_overflow_expr()
200 state = get_state(my_id, name, sym); in can_integer_overflow_expr()
[all …]
H A Dpre-process.c131 if (sym && sym->namespace != NS_MACRO) in lookup_macro()
132 sym = NULL; in lookup_macro()
133 return sym; in lookup_macro()
140 if (sym) { in token_defined()
167 replace_with_bool(token, sym && sym->builtin); in replace_with_has_builtin()
173 replace_with_bool(token, sym && sym->op && sym->op->attribute); in replace_with_has_attribute()
231 if (!sym) in expand_one_symbol()
1491 if (sym) { in do_define()
1512 if (!sym || sym->scope != file_scope) { in do_define()
1643 if (!sym || sym->scope != file_scope) { in do_handle_undef()
[all …]
H A Devaluate.c70 if (!sym) { in evaluate_symbol_expression()
95 return sym; in evaluate_symbol_expression()
131 return sym; in evaluate_string()
1676 sym = sym->ctype.base_type; in create_pointer()
1681 sym = sym->ctype.base_type; in create_pointer()
3143 sym->op && sym->op->args) { in evaluate_call()
3406 if (!sym) in evaluate_symbol()
3412 sym = examine_symbol_type(sym); in evaluate_symbol()
3419 evaluate_initializer(sym, &sym->initializer); in evaluate_symbol()
3425 if (sym->definition && sym->definition != sym) in evaluate_symbol()
[all …]
H A Dparse.c623 sym->op = ptr->op; in init_parser()
630 if (!sym->op) { in init_parser()
698 return sym; in alloc_indirect_symbol()
709 if (!sym) { in label_symbol()
714 return sym; in label_symbol()
727 if (!sym || in struct_union_enum_specifier()
1462 sym = examine_symbol_type(sym); in alignas_specifier()
2034 *p = sym; in typename()
2251 current_fn = sym; in start_function()
2313 sym->stmt = stmt; in add_case_statement()
[all …]
H A Dsmatch_implied.c308 if (sm->sym != gate_sm->sym || in do_compare()
568 if (left->sym != sm->sym || strcmp(left->name, sm->name) != 0) { in filter_pools()
570 left->sym = sm->sym; in filter_pools()
573 if (right->sym != sm->sym || strcmp(right->name, sm->name) != 0) { in filter_pools()
575 right->sym = sm->sym; in filter_pools()
622 filtered_sm->sym = tmp->sym; in filter_stack()
782 struct symbol *sym; in handle_zero_comparison() local
799 if (!name || !sym) in handle_zero_comparison()
1015 struct symbol *sym; in param_limit_implications() local
1043 if (!name || !sym) in param_limit_implications()
[all …]
H A Dsmatch_db.c465 if (!sym) { in get_static_filter()
617 if (sym->ident->name && is_common_function(sym->ident->name)) in sql_select_caller_info()
858 if (sym != sm->sym) in sm_to_arg_name()
922 if (sm->sym != sym) in print_struct_members()
1039 *sym = arg; in get_param()
1178 if (!sym || !sym->ident) in match_data_from_db()
1345 if (!sym || !sym->ident) in match_call_implies()
1348 info.sym = sym; in match_call_implies()
2565 *sym = NULL; in return_state_to_var_sym()
2733 if (!sym || !sym->ident) in get_param_name_var_sym()
[all …]
H A Dcheck_rosenberg.c39 type = get_real_base_type(sym); in extra_mod_hook()
118 struct symbol *sym; in has_global_scope() local
122 sym = expr->symbol; in has_global_scope()
123 if (!sym) in has_global_scope()
125 return toplevel(sym->scope); in has_global_scope()
197 struct symbol *sym; in check_members_initialized() local
202 sym = get_type(expr); in check_members_initialized()
203 if (sym && sym->type == SYM_PTR) { in check_members_initialized()
205 sym = get_real_base_type(sym); in check_members_initialized()
207 if (!sym) in check_members_initialized()
[all …]
H A Dsmatch.h73 struct symbol *sym; member
83 struct symbol *sym; member
96 struct symbol *sym; member
357 struct symbol *sym);
365 void __delete_all_states_sym(struct symbol *sym);
457 int get_param_num_from_sym(struct symbol *sym);
527 struct symbol *sym);
530 struct symbol *sym);
532 struct symbol *sym);
740 struct symbol *sym);
[all …]
H A Dsymbol.h332 extern void check_declaration(struct symbol *sym);
333 extern void check_duplicates(struct symbol *sym);
342 return examine_symbol_type(sym->ctype.base_type); in get_base_type()
367 static inline int is_signed_type(struct symbol *sym) in is_signed_type() argument
369 if (sym->type == SYM_NODE) in is_signed_type()
370 sym = sym->ctype.base_type; in is_signed_type()
371 if (sym->type == SYM_PTR) in is_signed_type()
373 return !(sym->ctype.modifiers & MOD_UNSIGNED); in is_signed_type()
475 return (sym->ctype.modifiers & MOD_EXTERN) && in is_extern_inline()
476 (sym->ctype.modifiers & MOD_INLINE) && in is_extern_inline()
[all …]
H A Dsmatch_buf_size.c241 struct symbol *sym; in size_from_db_symbol() local
245 sym = expr->symbol; in size_from_db_symbol()
246 if (!sym || !sym->ident || in size_from_db_symbol()
402 if (!sym || sym->type != SYM_STRUCT) in last_member_is_resizable()
426 struct symbol *sym; in get_stored_size_end_struct_bytes() local
436 sym = expr_to_sym(expr); in get_stored_size_end_struct_bytes()
437 if (!sym || !sym->ident) in get_stored_size_end_struct_bytes()
439 if (!type_bytes(sym)) in get_stored_size_end_struct_bytes()
456 state = get_state(my_size_id, sym->ident->name, sym); in get_stored_size_end_struct_bytes()
898 if (!sym->ident) in record_global_size()
[all …]
H A Dsmatch_mtag.c187 if (!sym) in get_toplevel_mtag()
190 if (!sym->ident || in get_toplevel_mtag()
191 !(sym->ctype.modifiers & MOD_TOPLEVEL)) in get_toplevel_mtag()
196 sym->ident->name); in get_toplevel_mtag()
201 bool get_symbol_mtag(struct symbol *sym, mtag_t *tag) in get_symbol_mtag() argument
205 if (!sym || !sym->ident) in get_symbol_mtag()
208 if (get_toplevel_mtag(sym, tag)) in get_symbol_mtag()
211 if (get_param_num_from_sym(sym) >= 0) in get_symbol_mtag()
220 static void global_variable(struct symbol *sym) in global_variable() argument
224 if (!get_toplevel_mtag(sym, &tag)) in global_variable()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/mm/
H A Dmm.c32 GElf_Sym sym; in kmemlog_walk_init() local
34 if (mdb_lookup_by_name("mm_kmemlog", &sym) != 0) { in kmemlog_walk_init()
40 kw->kmlw_entries = mdb_zalloc(sym.st_size, UM_SLEEP); in kmemlog_walk_init()
41 kw->kmlw_addr = sym.st_value; in kmemlog_walk_init()
43 if (mdb_vread(kw->kmlw_entries, sym.st_size, sym.st_value) == -1) { in kmemlog_walk_init()
44 mdb_warn("couldn't read log at %p", sym.st_value); in kmemlog_walk_init()
45 mdb_free(kw->kmlw_entries, sym.st_size); in kmemlog_walk_init()
50 kw->kmlw_nentries = sym.st_size / sizeof (mm_logentry_t); in kmemlog_walk_init()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c239 sym = (Elf32_Sym *) (symdata->d_buf); in _elf_nlist()
241 for (; sym < sym_end; ++sym) { in _elf_nlist()
244 if (sym->st_name > strhdr->sh_size) { in _elf_nlist()
262 p->n_value = sym->st_value; in _elf_nlist()
263 p->n_type = ELF32_ST_TYPE(sym->st_info); in _elf_nlist()
264 p->n_scnum = sym->st_shndx; in _elf_nlist()
359 struct syment sym; in _coff_nlist() local
385 q = &sym; in _coff_nlist()
393 if (sym_read(fd, &sym, SYMESZ) == -1) { in _coff_nlist()
505 if (sym->n_numaux && !num_in_buf) { in sym_read()
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmove.c53 elf_move_bad(Lm_list *lml, Rt_map *lmp, Sym *sym, ulong_t num, Addr addr) in elf_move_bad() argument
65 if (ELF_ST_BIND(sym->st_info) != STB_LOCAL) in elf_move_bad()
66 name = (const char *)(STRTAB(lmp) + sym->st_name); in elf_move_bad()
101 Sym *sym; in move_data() local
103 if ((sym = (Sym *)SYMTAB(lmp) + ELF_M_SYM(mv->m_info)) == 0) in move_data()
107 addr = sym->st_value; in move_data()
118 elf_move_bad(lml, lmp, sym, num, taddr); in move_data()
126 DBG_CALL(Dbg_move_entry2(lml, mv, sym->st_name, in move_data()
127 (const char *)(sym->st_name + STRTAB(lmp)))); in move_data()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_pservice.c157 GElf_Sym sym; in ps_pglobal_lookup() local
162 if (mdb_tgt_lookup_by_name(t, object, name, &sym, NULL) == 0) { in ps_pglobal_lookup()
163 *symp = (psaddr_t)sym.st_value; in ps_pglobal_lookup()
183 GElf_Sym sym; in ps_pglobal_sym() local
188 if (mdb_tgt_lookup_by_name(t, object, name, &sym, NULL) == 0) { in ps_pglobal_sym()
189 symp->st_name = (Elf32_Word)sym.st_name; in ps_pglobal_sym()
190 symp->st_value = (Elf32_Addr)sym.st_value; in ps_pglobal_sym()
191 symp->st_size = (Elf32_Word)sym.st_size; in ps_pglobal_sym()
193 GELF_ST_BIND(sym.st_info), GELF_ST_TYPE(sym.st_info)); in ps_pglobal_sym()
194 symp->st_other = sym.st_other; in ps_pglobal_sym()
[all …]
/illumos-gate/usr/src/cmd/iconv/
H A Dcharmap.c263 add_charmap_impl(char *sym, char *mbs, int mbs_len, int nodups) in add_charmap_impl() argument
270 if (sym == NULL || mbs == NULL) { in add_charmap_impl()
277 add_charmap_impl_fr(sym, mbs, mbs_len, nodups); in add_charmap_impl()
280 add_charmap_impl_to(sym, mbs, mbs_len, nodups); in add_charmap_impl()
298 n->cm_name = sym; in add_charmap_impl_fr()
312 warn(_("%s: duplicate character symbol"), sym); in add_charmap_impl_fr()
341 srch.cm_name = sym; in add_charmap_impl_to()
346 warn(_("%s: symbol not found"), sym); in add_charmap_impl_to()
359 warn(_("%s: duplicate encoding for"), sym); in add_charmap_impl_to()
369 add_charmap(char *sym, char *mbs) in add_charmap() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppinput.c352 register struct ppsymbol* sym = (struct ppsymbol*)v; in dump() local
357 if ((mac = sym->macro) && !(sym->flags & (SYM_BUILTIN|SYM_PREDEFINED))) in dump()
359 ppprintf("%s", sym->name); in dump()
369 if (sym->flags & SYM_FUNCTION) in dump()
473 struct ppsymbol* sym; in ppload() local
651 sym = ppsymset(pp.symtab, b); in ppload()
652 if (sym->macro) in ppload()
660 if (pp.test & 0x1000) error(2, "checkpoint SKIP %s=%s [%s]", sym->name, s, sym->macro->value); in ppload()
666 sym->flags = 0; in ppload()
667 if (m & LOAD_FUNCTION) sym->flags |= SYM_FUNCTION; in ppload()
[all …]
/illumos-gate/usr/src/tools/ndrgen/
H A Dndr_lex.c169 ndr_symbol_t *sym; in keyw_tab_init() local
175 sym->kw = kw; in keyw_tab_init()
204 ndr_symbol_t *sym; in yylex() local
271 yylval = &sym->s_node; in yylex()
273 if (sym->kw) { in yylex()
365 sym = sym_find(lexeme); in yylex()
366 if (sym) { in yylex()
368 yylval = &sym->s_node; in yylex()
375 sym = sym_find(lexeme); in yylex()
376 if (sym) { in yylex()
[all …]

12345678910>>...20