From 9ad457344c2b2632e1990f46e49c08d2261dddad Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 20 Feb 2012 10:25:02 +0000 Subject: * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on local symbols. --- gas/cgen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gas/cgen.c') diff --git a/gas/cgen.c b/gas/cgen.c index d3976d1..9697ef6 100644 --- a/gas/cgen.c +++ b/gas/cgen.c @@ -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; -- cgit v1.1