View | Details | Raw Unified | Return to bug 12532
Collapse All | Expand All

(-)gas/config/tc-arm.c (+6 lines)
Lines 18960-18965 relax_branch (fragS *fragp, asection *se Link Here
18960
  /* Assume worst case for symbols not known to be in the same section.  */
18960
  /* Assume worst case for symbols not known to be in the same section.  */
18961
  if (!S_IS_DEFINED (fragp->fr_symbol)
18961
  if (!S_IS_DEFINED (fragp->fr_symbol)
18962
      || sec != S_GET_SEGMENT (fragp->fr_symbol)
18962
      || sec != S_GET_SEGMENT (fragp->fr_symbol)
18963
#ifdef OBJ_ELF
18964
      /* PR 12532.  Global symbols with default visibility might
18965
	 be preempted, so do not relax relocations to them.  */
18966
      || ((ELF_ST_VISIBILITY (S_GET_OTHER (fragp->fr_symbol)) == STV_DEFAULT)
18967
	  && (! S_IS_LOCAL (fragp->fr_symbol)))
18968
#endif
18963
      || S_IS_WEAK (fragp->fr_symbol))
18969
      || S_IS_WEAK (fragp->fr_symbol))
18964
    return 4;
18970
    return 4;
18965
18971

Return to bug 12532