Lines Matching refs:symbolP
1690 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()
1737 S_CLEAR_VOLATILE (symbolP); in s_comm_internal()
1740 size = S_GET_VALUE (symbolP); in s_comm_internal()
1748 symbolP = (*comm_parse_extra) (param, symbolP, size); in s_comm_internal()
1751 S_SET_VALUE (symbolP, (valueT) size); in s_comm_internal()
1752 S_SET_EXTERNAL (symbolP); in s_comm_internal()
1753 S_SET_SEGMENT (symbolP, bfd_com_section_ptr); in s_comm_internal()
1762 return symbolP; in s_comm_internal()
2256 symbolS *symbolP; in s_globl() local
2268 symbolP = symbol_find_or_make (name); in s_globl()
2269 S_SET_EXTERNAL (symbolP); in s_globl()
2395 bss_alloc (symbolS *symbolP, addressT size, int align) in bss_alloc() argument
2426 if (S_GET_SEGMENT (symbolP) == bss_seg) in bss_alloc()
2427 symbol_get_frag (symbolP)->fr_symbol = NULL; in bss_alloc()
2429 symbol_set_frag (symbolP, frag_now); in bss_alloc()
2430 pfrag = frag_var (rs_org, 1, 1, 0, symbolP, size, NULL); in bss_alloc()
2434 S_SET_SIZE (symbolP, size); in bss_alloc()
2436 S_SET_SEGMENT (symbolP, bss_seg); in bss_alloc()
2442 if (S_GET_STORAGE_CLASS (symbolP) != C_EXT) in bss_alloc()
2443 S_SET_STORAGE_CLASS (symbolP, C_STAT); in bss_alloc()
2501 s_lcomm_internal (int needs_align, symbolS *symbolP, addressT size) in s_lcomm_internal() argument
2515 bss_alloc (symbolP, size, align); in s_lcomm_internal()
2516 return symbolP; in s_lcomm_internal()
2536 symbolS *symbolP; in s_lsym() local
2558 symbolP = symbol_find_or_make (name); in s_lsym()
2560 if (S_GET_SEGMENT (symbolP) == undefined_section) in s_lsym()
2564 S_SET_SEGMENT (symbolP, in s_lsym()
2568 S_SET_VALUE (symbolP, (valueT) exp.X_add_number); in s_lsym()
3158 symbolS *symbolP; in assign_symbol() local
3174 if ((symbolP = symbol_find (name)) == NULL in assign_symbol()
3175 && (symbolP = md_undefined_symbol (name)) == NULL) in assign_symbol()
3177 symbolP = symbol_find_or_make (name); in assign_symbol()
3187 dummy_frag->fr_symbol = symbolP; in assign_symbol()
3188 symbol_set_frag (symbolP, dummy_frag); in assign_symbol()
3193 SF_SET_LOCAL (symbolP); in assign_symbol()
3197 if (S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP)) in assign_symbol()
3199 if ((mode != 0 || !S_IS_VOLATILE (symbolP)) in assign_symbol()
3200 && !S_CAN_BE_REDEFINED (symbolP)) in assign_symbol()
3203 symbolP = symbol_clone (symbolP, 0); in assign_symbol()
3208 else if (S_IS_VOLATILE (symbolP)) in assign_symbol()
3209 symbolP = symbol_clone (symbolP, 1); in assign_symbol()
3213 S_SET_VOLATILE (symbolP); in assign_symbol()
3215 S_SET_FORWARD_REF (symbolP); in assign_symbol()
3217 pseudo_set (symbolP); in assign_symbol()
3551 symbolS *symbolP; in s_weakref() local
3558 symbolP = symbol_find_or_make (name); in s_weakref()
3560 if (S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP)) in s_weakref()
3562 if (!S_IS_VOLATILE (symbolP)) in s_weakref()
3567 symbolP = symbol_clone (symbolP, 1); in s_weakref()
3568 S_CLEAR_VOLATILE (symbolP); in s_weakref()
3597 while (S_IS_WEAKREFR (symp) && symp != symbolP) in s_weakref()
3605 if (symp == symbolP) in s_weakref()
3609 loop = concat (S_GET_NAME (symbolP), in s_weakref()
3613 while (symp != symbolP) in s_weakref()
3624 S_GET_NAME (symbolP), loop); in s_weakref()
3642 S_SET_SEGMENT (symbolP, undefined_section); in s_weakref()
3643 symbol_set_value_expression (symbolP, &exp); in s_weakref()
3644 symbol_set_frag (symbolP, &zero_address_frag); in s_weakref()
3645 S_SET_WEAKREFR (symbolP); in s_weakref()
3702 set_zero_frag (symbolS *symbolP) in set_zero_frag() argument
3704 if (symbol_get_frag (symbolP)->fr_type != rs_dummy) in set_zero_frag()
3705 symbol_set_frag (symbolP, &zero_address_frag); in set_zero_frag()
3716 pseudo_set (symbolS *symbolP) in pseudo_set() argument
3721 know (symbolP); /* NULL pointer is logic error. */ in pseudo_set()
3723 if (!S_IS_FORWARD_REF (symbolP)) in pseudo_set()
3740 && !S_IS_FORWARD_REF (symbolP) in pseudo_set()
3750 if (symbol_section_p (symbolP)) in pseudo_set()
3764 S_SET_SEGMENT (symbolP, absolute_section); in pseudo_set()
3765 S_SET_VALUE (symbolP, (valueT) exp.X_add_number); in pseudo_set()
3766 set_zero_frag (symbolP); in pseudo_set()
3771 if (S_IS_EXTERNAL (symbolP)) in pseudo_set()
3774 S_GET_NAME (symbolP)); in pseudo_set()
3778 S_SET_SEGMENT (symbolP, reg_section); in pseudo_set()
3779 S_SET_VALUE (symbolP, (valueT) exp.X_add_number); in pseudo_set()
3780 set_zero_frag (symbolP); in pseudo_set()
3781 symbol_get_value_expression (symbolP)->X_op = O_register; in pseudo_set()
3789 if (symbolP == exp.X_add_symbol in pseudo_set()
3791 || !symbol_constant_p (symbolP))) in pseudo_set()
3793 *symbol_X_add_number (symbolP) += exp.X_add_number; in pseudo_set()
3796 else if (!S_IS_FORWARD_REF (symbolP) && seg != undefined_section) in pseudo_set()
3802 S_GET_NAME (symbolP), S_GET_NAME (s)); in pseudo_set()
3804 S_SET_SEGMENT (symbolP, seg); in pseudo_set()
3805 S_SET_VALUE (symbolP, exp.X_add_number + S_GET_VALUE (s)); in pseudo_set()
3806 symbol_set_frag (symbolP, symbol_get_frag (s)); in pseudo_set()
3807 copy_symbol_attributes (symbolP, s); in pseudo_set()
3810 S_SET_SEGMENT (symbolP, undefined_section); in pseudo_set()
3811 symbol_set_value_expression (symbolP, &exp); in pseudo_set()
3812 copy_symbol_attributes (symbolP, exp.X_add_symbol); in pseudo_set()
3813 set_zero_frag (symbolP); in pseudo_set()
3818 S_SET_SEGMENT (symbolP, expr_section); in pseudo_set()
3819 symbol_set_value_expression (symbolP, &exp); in pseudo_set()
3820 set_zero_frag (symbolP); in pseudo_set()