From b69fb9bd8ea598a09e023013c972f72d2823a0aa Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 20 Feb 2012 10:25:01 +0000 Subject: [PATCH] * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on local symbols. --- gas/ChangeLog | 5 +++++ gas/cgen.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d8a95ee9c..dbafd5892 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2012-02-20 Nick Clifton + + * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on + local symbols. + 2012-02-12 Iain Sandoe * config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of diff --git a/gas/cgen.c b/gas/cgen.c index d3976d13b..9697ef6ec 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; -- 2.11.4.GIT