From: Jie Zhang Date: Thu, 24 Jul 2008 07:25:13 +0000 (+0000) Subject: * config/bfin-parse.y (asm_1): Error if plain symbol is used X-Git-Tag: sid-snapshot-20080801~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81fd73edd15ab295e7340aae0c58ace517159d35;p=external%2Fbinutils.git * config/bfin-parse.y (asm_1): Error if plain symbol is used as load/store offset. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a486228..b8016c6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2008-07-24 Jie Zhang + + * config/bfin-parse.y (asm_1): Error if plain symbol is used + as load/store offset. + 2008-07-22 Chao-ying Fu * config/tc-mips.c (mips_ip): Reset s to argsStart. diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index 4a212ac..0110482 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -3202,6 +3202,11 @@ asm_1: if (!IS_DREG ($1) && !ispreg) return yyerror ("Bad destination register for LOAD"); + if (tmp->type == Expr_Node_Reloc + && strcmp (tmp->value.s_value, + "_current_shared_library_p5_offset_") != 0) + return yyerror ("Plain symbol used as offset"); + if ($5.r0) tmp = unary (Expr_Op_Type_NEG, tmp);