* cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
authorNick Clifton <nickc@redhat.com>
Mon, 20 Feb 2012 10:25:02 +0000 (10:25 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Feb 2012 10:25:02 +0000 (10:25 +0000)
local symbols.

gas/ChangeLog
gas/cgen.c

index d8a95ee9ce30ade035c20f3fb777ee48f3ba89c7..dbafd58923cbff2b016d9a15dc023df0d47ac3e3 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-20  Nick Clifton  <nickc@redhat.com>
+
+       * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
+       local symbols.
+
 2012-02-12  Iain Sandoe  <idsandoe@googlemail.com>
 
        * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
index d3976d13b9c6198c26ecaf91f4de16314fedf3cb..9697ef6ec84e4f11042248c850485708f1c4e71c 100644 (file)
@@ -483,7 +483,8 @@ gas_cgen_parse_operand (cd, want, strP, opindex, opinfo, resultP, valueP)
          if (operand && (operand->hw_type == HW_H_SINT))
            signed_p = 1;
 
-         if (stmp->bsym && (stmp->bsym->section == expr_section))
+         if (stmp->bsym && (stmp->bsym->section == expr_section)
+             && ! S_IS_LOCAL (stmp))
            {
              if (signed_p)
                stmp->bsym->flags |= BSF_SRELC;