Home
last modified time | relevance | path

Searched refs:symbolP (Results 1 – 25 of 57) sorted by relevance

123

/toolchain/binutils/binutils-2.25/gas/
Dsymbols.c88 symbolS *symbolP = symbol_create (name, segment, valu, frag); in symbol_new() local
96 symbol_append (symbolP, symbol_lastP, &symbol_rootP, &symbol_lastP); in symbol_new()
98 return symbolP; in symbol_new()
136 symbolS *symbolP; in symbol_create() local
140 symbolP = (symbolS *) obstack_alloc (&notes, sizeof (symbolS)); in symbol_create()
143 memset (symbolP, 0, sizeof (symbolS)); in symbol_create()
145 symbolP->bsym = bfd_make_empty_symbol (stdoutput); in symbol_create()
146 if (symbolP->bsym == NULL) in symbol_create()
148 S_SET_NAME (symbolP, preserved_copy_of_name); in symbol_create()
150 S_SET_SEGMENT (symbolP, segment); in symbol_create()
[all …]
Dread.c1690 symbolS *symbolP = NULL; in s_comm_internal() local
1722 symbolP = symbol_find_or_make (name); in s_comm_internal()
1723 if ((S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP)) in s_comm_internal()
1724 && !S_IS_COMMON (symbolP)) in s_comm_internal()
1726 if (!S_IS_VOLATILE (symbolP)) in s_comm_internal()
1728 symbolP = NULL; in s_comm_internal()
1733 symbolP = symbol_clone (symbolP, 1); in s_comm_internal()
1734 S_SET_SEGMENT (symbolP, undefined_section); in s_comm_internal()
1735 S_SET_VALUE (symbolP, 0); in s_comm_internal()
1736 symbol_set_frag (symbolP, &zero_address_frag); in s_comm_internal()
[all …]
Dexpr.c71 symbolS *symbolP; in make_expr_symbol() local
99 symbolP = symbol_create (FAKE_LABEL_NAME, in make_expr_symbol()
106 symbol_set_value_expression (symbolP, expressionP); in make_expr_symbol()
109 resolve_symbol_value (symbolP); in make_expr_symbol()
112 n->sym = symbolP; in make_expr_symbol()
117 return symbolP; in make_expr_symbol()
260 symbolS *symbolP; /* Points to symbol. */ in integer_constant() local
523 symbolP = symbol_find (name); in integer_constant()
524 if ((symbolP != NULL) && (S_IS_DEFINED (symbolP))) in integer_constant()
528 know (SEG_NORMAL (S_GET_SEGMENT (symbolP))); in integer_constant()
[all …]
Dcond.c72 symbolS *symbolP; in s_ifdef() local
89 symbolP = symbol_find (name); in s_ifdef()
104 symbolP != NULL in s_ifdef()
105 && (S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP)) in s_ifdef()
106 && S_GET_SEGMENT (symbolP) != reg_section; in s_ifdef()
Dobj.h33 void obj_symbol_new_hook (symbolS * symbolP);
36 void obj_symbol_to_chars (char **where, symbolS * symbolP);
Dsymbols.h67 void symbol_table_insert (symbolS * symbolP);
162 void symbol_clear_list_pointers (symbolS * symbolP);
166 void symbol_remove (symbolS * symbolP, symbolS ** rootP,
Dwrite.c2208 symbolS *symbolP; in relax_frag() local
2216 symbolP = fragP->fr_symbol; in relax_frag()
2218 if (symbolP) in relax_frag()
2222 sym_frag = symbol_get_frag (symbolP); in relax_frag()
2227 know (S_GET_SEGMENT (symbolP) != absolute_section in relax_frag()
2229 target += S_GET_VALUE (symbolP); in relax_frag()
2241 && S_GET_SEGMENT (symbolP) == segment) in relax_frag()
2492 symbolS *symbolP; in relax_segment() local
2497 symbolP = fragP->fr_symbol; in relax_segment()
2644 if (symbolP) in relax_segment()
[all …]
/toolchain/binutils/binutils-2.25/gas/config/
Dobj-coff.c133 tag_insert (const char *name, symbolS *symbolP) in tag_insert() argument
137 if ((error_string = hash_jam (tag_hash, name, (char *) symbolP))) in tag_insert()
151 symbolS *symbolP; in tag_find_or_make() local
153 if ((symbolP = tag_find (name)) == NULL) in tag_find_or_make()
155 symbolP = symbol_new (name, undefined_section, in tag_find_or_make()
158 tag_insert (S_GET_NAME (symbolP), symbolP); in tag_find_or_make()
159 symbol_table_insert (symbolP); in tag_find_or_make()
162 return symbolP; in tag_find_or_make()
182 obj_coff_common_parse (int ignore ATTRIBUTE_UNUSED, symbolS *symbolP, addressT size) in obj_coff_common_parse() argument
193 S_SET_VALUE (symbolP, size); in obj_coff_common_parse()
[all …]
Dtc-m32r.c571 symbolS *symbolP; in debug_sym() local
578 if ((symbolP = symbol_find (name)) == NULL in debug_sym()
579 && (symbolP = md_undefined_symbol (name)) == NULL) in debug_sym()
580 symbolP = symbol_new (name, undefined_section, 0, &zero_address_frag); in debug_sym()
582 symbol_table_insert (symbolP); in debug_sym()
583 if (S_IS_DEFINED (symbolP) && (S_GET_SEGMENT (symbolP) != reg_section in debug_sym()
584 || S_IS_EXTERNAL (symbolP) in debug_sym()
585 || S_IS_WEAK (symbolP))) in debug_sym()
587 as_bad (_("symbol `%s' already defined"), S_GET_NAME (symbolP)); in debug_sym()
592 lnk->symbol = symbolP; in debug_sym()
[all …]
Dtc-arc.c408 symbolS *symbolP; in arc_extoper() local
548 if ((symbolP = symbol_find (name))) in arc_extoper()
550 if (S_GET_SEGMENT (symbolP) == reg_section) in arc_extoper()
551 S_SET_VALUE (symbolP, (valueT) &ext_oper->operand); in arc_extoper()
850 symbolS *symbolP; in arc_common() local
877 symbolP = symbol_find_or_make (name); in arc_common()
880 if (S_IS_DEFINED (symbolP) && ! S_IS_COMMON (symbolP)) in arc_common()
886 if (((int) S_GET_VALUE (symbolP) != 0) \ in arc_common()
887 && ((int) S_GET_VALUE (symbolP) != size)) in arc_common()
890 S_GET_NAME (symbolP), (long) S_GET_VALUE (symbolP), size); in arc_common()
[all …]
Dtc-tic4x.c639 symbolS *symbolP; in tic4x_insert_sym() local
641 symbolP = symbol_new (symname, absolute_section, in tic4x_insert_sym()
643 SF_SET_LOCAL (symbolP); in tic4x_insert_sym()
644 symbol_table_insert (symbolP); in tic4x_insert_sym()
689 symbolS *symbolP) in tic4x_seg_alloc() argument
703 (symbolS *) symbolP, in tic4x_seg_alloc()
756 symbolS *symbolP; in tic4x_bss() local
778 symbolP = symbol_find_or_make (name); in tic4x_bss()
780 if (S_GET_SEGMENT (symbolP) == bss_section) in tic4x_bss()
781 symbol_get_frag (symbolP)->fr_symbol = 0; in tic4x_bss()
[all …]
Dobj-elf.c306 elf_common_parse (int ignore ATTRIBUTE_UNUSED, symbolS *symbolP, addressT size) in elf_common_parse() argument
309 int is_local = symbol_get_obj (symbolP)->local; in elf_common_parse()
361 bss_alloc (symbolP, size, align); in elf_common_parse()
362 S_CLEAR_EXTERNAL (symbolP); in elf_common_parse()
366 S_SET_VALUE (symbolP, size); in elf_common_parse()
367 S_SET_ALIGN (symbolP, align); in elf_common_parse()
368 S_SET_EXTERNAL (symbolP); in elf_common_parse()
369 S_SET_SEGMENT (symbolP, elf_com_section_ptr); in elf_common_parse()
372 symbol_get_bfdsym (symbolP)->flags |= BSF_OBJECT; in elf_common_parse()
374 return symbolP; in elf_common_parse()
[all …]
Dtc-i370.c1029 symbolS *symbolP; in i370_elf_lcomm() local
1074 symbolP = symbol_find_or_make (name); in i370_elf_lcomm()
1077 if (S_IS_DEFINED (symbolP) && ! S_IS_COMMON (symbolP)) in i370_elf_lcomm()
1080 S_GET_NAME (symbolP)); in i370_elf_lcomm()
1085 if (S_GET_VALUE (symbolP) && S_GET_VALUE (symbolP) != (valueT) size) in i370_elf_lcomm()
1088 S_GET_NAME (symbolP), in i370_elf_lcomm()
1089 (long) S_GET_VALUE (symbolP), in i370_elf_lcomm()
1118 if (S_GET_SEGMENT (symbolP) == bss_section) in i370_elf_lcomm()
1119 symbol_get_frag (symbolP)->fr_symbol = 0; in i370_elf_lcomm()
1120 symbol_set_frag (symbolP, frag_now); in i370_elf_lcomm()
[all …]
Dobj-macho.c895 obj_mach_o_common_parse (int is_local, symbolS *symbolP, in obj_mach_o_common_parse() argument
919 s = (bfd_mach_o_asymbol *) symbol_get_bfdsym (symbolP); in obj_mach_o_common_parse()
928 bss_alloc (symbolP, size, align); in obj_mach_o_common_parse()
930 S_CLEAR_EXTERNAL (symbolP); in obj_mach_o_common_parse()
934 S_SET_VALUE (symbolP, size); in obj_mach_o_common_parse()
935 S_SET_ALIGN (symbolP, align); in obj_mach_o_common_parse()
936 S_SET_EXTERNAL (symbolP); in obj_mach_o_common_parse()
937 S_SET_SEGMENT (symbolP, bfd_com_section_ptr); in obj_mach_o_common_parse()
947 return symbolP; in obj_mach_o_common_parse()
1128 symbolS *symbolP; in obj_mach_o_sym_qual() local
[all …]
Dtc-sparc.c3974 symbolS *symbolP; in s_reserve() local
3999 symbolP = symbol_find_or_make (name); in s_reserve()
4062 if (!S_IS_DEFINED (symbolP) in s_reserve()
4064 && S_GET_OTHER (symbolP) == 0 in s_reserve()
4065 && S_GET_DESC (symbolP) == 0 in s_reserve()
4083 if (S_GET_SEGMENT (symbolP) == bss_section) in s_reserve()
4084 symbol_get_frag (symbolP)->fr_symbol = NULL; in s_reserve()
4086 symbol_set_frag (symbolP, frag_now); in s_reserve()
4087 pfrag = frag_var (rs_org, 1, 1, (relax_substateT) 0, symbolP, in s_reserve()
4091 S_SET_SEGMENT (symbolP, bss_section); in s_reserve()
[all …]
Dtc-v850.c267 symbolS *symbolP; in v850_comm() local
299 symbolP = symbol_find_or_make (name); in v850_comm()
302 if (S_IS_DEFINED (symbolP) && ! S_IS_COMMON (symbolP)) in v850_comm()
309 if (S_GET_VALUE (symbolP) != 0) in v850_comm()
311 if (S_GET_VALUE (symbolP) != size) in v850_comm()
314 S_GET_NAME (symbolP), (long) S_GET_VALUE (symbolP), size); in v850_comm()
317 know (symbol_get_frag (symbolP) == &zero_address_frag); in v850_comm()
343 if (symbol_get_obj (symbolP)->local) in v850_comm()
397 if (S_GET_SEGMENT (symbolP) == v850_seg_table[SBSS_SECTION].s) in v850_comm()
398 symbol_get_frag (symbolP)->fr_symbol = 0; in v850_comm()
[all …]
Dtc-tic54x.c386 symbolS *symbolP; in tic54x_eval() local
426 symbolP = symbol_new (name, absolute_section, in tic54x_eval()
428 SF_SET_LOCAL (symbolP); in tic54x_eval()
429 symbol_table_insert (symbolP); in tic54x_eval()
465 symbolS *symbolP; in tic54x_bss() local
513 symbolP = symbol_find_or_make (name); in tic54x_bss()
515 if (S_GET_SEGMENT (symbolP) == bss_section) in tic54x_bss()
516 symbolP->sy_frag->fr_symbol = (symbolS *) NULL; in tic54x_bss()
518 symbol_set_frag (symbolP, frag_now); in tic54x_bss()
519 p = frag_var (rs_org, 1, 1, (relax_substateT) 0, symbolP, in tic54x_bss()
[all …]
Dtc-i960.c2408 symbolS *symbolP; in tc_bout_fix_to_chars() local
2411 symbolP = fixP->fx_addsy; in tc_bout_fix_to_chars()
2412 know (symbolP != 0 || fixP->fx_r_type != NO_RELOC); in tc_bout_fix_to_chars()
2444 else if (linkrelax || !S_IS_DEFINED (symbolP) || fixP->fx_bsr) in tc_bout_fix_to_chars()
2447 ri.r_index = symbolP->sy_number; in tc_bout_fix_to_chars()
2452 ri.r_index = S_GET_TYPE (symbolP); in tc_bout_fix_to_chars()
2540 tc_coff_symbol_emit_hook (symbolS *symbolP ATTRIBUTE_UNUSED) in tc_coff_symbol_emit_hook()
2542 if (TC_S_IS_CALLNAME (symbolP)) in tc_coff_symbol_emit_hook()
2544 symbolS *balP = tc_get_bal_of_call (symbolP); in tc_coff_symbol_emit_hook()
2546 symbolP->sy_symbol.ost_auxent[1].x_bal.x_balntry = S_GET_VALUE (balP); in tc_coff_symbol_emit_hook()
[all …]
Dtc-microblaze.c175 symbolS *symbolP; in microblaze_s_lcomm() local
219 symbolP = symbol_find_or_make (name); in microblaze_s_lcomm()
222 if (S_IS_DEFINED (symbolP) && ! S_IS_COMMON (symbolP)) in microblaze_s_lcomm()
225 S_GET_NAME (symbolP)); in microblaze_s_lcomm()
230 if (S_GET_VALUE (symbolP) && S_GET_VALUE (symbolP) != (valueT) size) in microblaze_s_lcomm()
233 S_GET_NAME (symbolP), in microblaze_s_lcomm()
234 (long) S_GET_VALUE (symbolP), in microblaze_s_lcomm()
260 if (S_GET_SEGMENT (symbolP) == current_seg) in microblaze_s_lcomm()
261 symbol_get_frag (symbolP)->fr_symbol = 0; in microblaze_s_lcomm()
262 symbol_set_frag (symbolP, frag_now); in microblaze_s_lcomm()
[all …]
Dtc-cris.c524 symbolS *symbolP; in cris_relax_frag() local
552 symbolP = fragP->fr_symbol; in cris_relax_frag()
553 if (symbol_resolved_p (symbolP)) in cris_relax_frag()
556 aim = S_GET_VALUE (symbolP); in cris_relax_frag()
628 symbolS *symbolP = fragP->fr_symbol; in md_estimate_size_before_relax() local
632 if (symbolP != NULL \ in md_estimate_size_before_relax()
633 && S_GET_SEGMENT (symbolP) == segment_type \ in md_estimate_size_before_relax()
634 && !S_IS_WEAK (symbolP)) \ in md_estimate_size_before_relax()
658 if (symbolP != NULL in md_estimate_size_before_relax()
659 && S_GET_SEGMENT (symbolP) == segment_type in md_estimate_size_before_relax()
[all …]
Dobj-som.c301 symbolS *symbolP; in obj_som_weak() local
307 symbolP = symbol_find_or_make (name); in obj_som_weak()
310 S_SET_WEAK (symbolP); in obj_som_weak()
Dobj-aout.c151 symbolS *symbolP; in obj_aout_weak() local
157 symbolP = symbol_find_or_make (name); in obj_aout_weak()
160 S_SET_WEAK (symbolP); in obj_aout_weak()
Dtc-mmix.c2303 symbolS *symbolP; in md_convert_frag() local
2321 symbolP = fragP->fr_symbol; in md_convert_frag()
2324 = ((symbolP ? S_GET_VALUE (symbolP) : 0) + fragP->fr_offset); in md_convert_frag()
3374 symbolS *symbolP; in mmix_md_relax_frag() local
3377 symbolP = fragP->fr_symbol; in mmix_md_relax_frag()
3379 if (symbolP) in mmix_md_relax_frag()
3383 sym_frag = symbol_get_frag (symbolP); in mmix_md_relax_frag()
3384 know (S_GET_SEGMENT (symbolP) != absolute_section in mmix_md_relax_frag()
3386 target += S_GET_VALUE (symbolP); in mmix_md_relax_frag()
3395 && S_GET_SEGMENT (symbolP) == seg) in mmix_md_relax_frag()
[all …]
Dobj-evax.c54 symbolS *symbolP; in s_evax_weak() local
65 symbolP = symbol_find_or_make (name); in s_evax_weak()
68 S_SET_WEAK (symbolP); in s_evax_weak()
Dtc-ppc.c2137 symbolS *symbolP; in ppc_elf_lcomm() local
2181 symbolP = symbol_find_or_make (name); in ppc_elf_lcomm()
2184 if (S_IS_DEFINED (symbolP) && ! S_IS_COMMON (symbolP)) in ppc_elf_lcomm()
2187 S_GET_NAME (symbolP)); in ppc_elf_lcomm()
2192 if (S_GET_VALUE (symbolP) && S_GET_VALUE (symbolP) != (valueT) size) in ppc_elf_lcomm()
2195 S_GET_NAME (symbolP), in ppc_elf_lcomm()
2196 (long) S_GET_VALUE (symbolP), in ppc_elf_lcomm()
2224 if (S_GET_SEGMENT (symbolP) == bss_section) in ppc_elf_lcomm()
2225 symbol_get_frag (symbolP)->fr_symbol = 0; in ppc_elf_lcomm()
2226 symbol_set_frag (symbolP, frag_now); in ppc_elf_lcomm()
[all …]

123