Lines Matching refs:symbolP
1693 symbolS *symbolP = NULL;
1725 symbolP = symbol_find_or_make (name);
1726 if ((S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP))
1727 && !S_IS_COMMON (symbolP))
1729 if (!S_IS_VOLATILE (symbolP))
1731 symbolP = NULL;
1736 symbolP = symbol_clone (symbolP, 1);
1737 S_SET_SEGMENT (symbolP, undefined_section);
1738 S_SET_VALUE (symbolP, 0);
1739 symbol_set_frag (symbolP, &zero_address_frag);
1740 S_CLEAR_VOLATILE (symbolP);
1743 size = S_GET_VALUE (symbolP);
1751 symbolP = (*comm_parse_extra) (param, symbolP, size);
1754 S_SET_VALUE (symbolP, (valueT) size);
1755 S_SET_EXTERNAL (symbolP);
1756 S_SET_SEGMENT (symbolP, bfd_com_section_ptr);
1765 return symbolP;
2259 symbolS *symbolP;
2271 symbolP = symbol_find_or_make (name);
2272 S_SET_EXTERNAL (symbolP);
2398 bss_alloc (symbolS *symbolP, addressT size, int align)
2429 if (S_GET_SEGMENT (symbolP) == bss_seg)
2430 symbol_get_frag (symbolP)->fr_symbol = NULL;
2432 symbol_set_frag (symbolP, frag_now);
2433 pfrag = frag_var (rs_org, 1, 1, 0, symbolP, size, NULL);
2437 S_SET_SIZE (symbolP, size);
2439 S_SET_SEGMENT (symbolP, bss_seg);
2445 if (S_GET_STORAGE_CLASS (symbolP) != C_EXT)
2446 S_SET_STORAGE_CLASS (symbolP, C_STAT);
2504 s_lcomm_internal (int needs_align, symbolS *symbolP, addressT size)
2518 bss_alloc (symbolP, size, align);
2519 return symbolP;
2539 symbolS *symbolP;
2561 symbolP = symbol_find_or_make (name);
2563 if (S_GET_SEGMENT (symbolP) == undefined_section)
2567 S_SET_SEGMENT (symbolP,
2571 S_SET_VALUE (symbolP, (valueT) exp.X_add_number);
3161 symbolS *symbolP;
3177 if ((symbolP = symbol_find (name)) == NULL
3178 && (symbolP = md_undefined_symbol (name)) == NULL)
3180 symbolP = symbol_find_or_make (name);
3190 dummy_frag->fr_symbol = symbolP;
3191 symbol_set_frag (symbolP, dummy_frag);
3196 SF_SET_LOCAL (symbolP);
3200 if (S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP))
3202 if ((mode != 0 || !S_IS_VOLATILE (symbolP))
3203 && !S_CAN_BE_REDEFINED (symbolP))
3206 symbolP = symbol_clone (symbolP, 0);
3211 else if (S_IS_VOLATILE (symbolP))
3212 symbolP = symbol_clone (symbolP, 1);
3216 S_SET_VOLATILE (symbolP);
3218 S_SET_FORWARD_REF (symbolP);
3220 pseudo_set (symbolP);
3554 symbolS *symbolP;
3561 symbolP = symbol_find_or_make (name);
3563 if (S_IS_DEFINED (symbolP) || symbol_equated_p (symbolP))
3565 if (!S_IS_VOLATILE (symbolP))
3570 symbolP = symbol_clone (symbolP, 1);
3571 S_CLEAR_VOLATILE (symbolP);
3600 while (S_IS_WEAKREFR (symp) && symp != symbolP)
3608 if (symp == symbolP)
3612 loop = concat (S_GET_NAME (symbolP),
3616 while (symp != symbolP)
3627 S_GET_NAME (symbolP), loop);
3645 S_SET_SEGMENT (symbolP, undefined_section);
3646 symbol_set_value_expression (symbolP, &exp);
3647 symbol_set_frag (symbolP, &zero_address_frag);
3648 S_SET_WEAKREFR (symbolP);
3706 set_zero_frag (symbolS *symbolP)
3708 if (symbol_get_frag (symbolP)->fr_type != rs_dummy)
3709 symbol_set_frag (symbolP, &zero_address_frag);
3720 pseudo_set (symbolS *symbolP)
3725 know (symbolP); /* NULL pointer is logic error. */
3727 if (!S_IS_FORWARD_REF (symbolP))
3744 && !S_IS_FORWARD_REF (symbolP)
3754 if (symbol_section_p (symbolP))
3768 S_SET_SEGMENT (symbolP, absolute_section);
3769 S_SET_VALUE (symbolP, (valueT) exp.X_add_number);
3770 set_zero_frag (symbolP);
3775 if (S_IS_EXTERNAL (symbolP))
3778 S_GET_NAME (symbolP));
3782 S_SET_SEGMENT (symbolP, reg_section);
3783 S_SET_VALUE (symbolP, (valueT) exp.X_add_number);
3784 set_zero_frag (symbolP);
3785 symbol_get_value_expression (symbolP)->X_op = O_register;
3793 if (symbolP == exp.X_add_symbol
3795 || !symbol_constant_p (symbolP)))
3797 *symbol_X_add_number (symbolP) += exp.X_add_number;
3800 else if (!S_IS_FORWARD_REF (symbolP) && seg != undefined_section)
3806 S_GET_NAME (symbolP), S_GET_NAME (s));
3808 S_SET_SEGMENT (symbolP, seg);
3809 S_SET_VALUE (symbolP, exp.X_add_number + S_GET_VALUE (s));
3810 symbol_set_frag (symbolP, symbol_get_frag (s));
3811 copy_symbol_attributes (symbolP, s);
3814 S_SET_SEGMENT (symbolP, undefined_section);
3815 symbol_set_value_expression (symbolP, &exp);
3816 copy_symbol_attributes (symbolP, exp.X_add_symbol);
3817 set_zero_frag (symbolP);
3822 S_SET_SEGMENT (symbolP, expr_section);
3823 symbol_set_value_expression (symbolP, &exp);
3824 set_zero_frag (symbolP);