diff options
author | Paul Brook <paul@codesourcery.com> | 2006-02-21 15:13:54 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-02-21 15:13:54 +0000 |
commit | 216d22bc1ddda52fc28a8d5598179094de04bf3e (patch) | |
tree | b9d2cbd181921605eb86af406b05b2992b3846ee /gas | |
parent | 96f4851a80dbfb7da33342c9666f3dfa8bb4cbb3 (diff) | |
download | gdb-216d22bc1ddda52fc28a8d5598179094de04bf3e.zip gdb-216d22bc1ddda52fc28a8d5598179094de04bf3e.tar.gz gdb-216d22bc1ddda52fc28a8d5598179094de04bf3e.tar.bz2 |
2006-02-21 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (md_apply_fix): Fix off-by-one errors.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d8e3d09..15945a3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2006-02-21 Paul Brook <paul@codesourcery.com> + + * config/tc-arm.c (md_apply_fix): Fix off-by-one errors. + 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com> Anil Paranjape <anilp1@kpitcummins.com> Shilin Shakti <shilins@kpitcummins.com> diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 4ff2a7d..20a31b9 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -11431,7 +11431,7 @@ md_apply_fix (fixS * fixP, break; } value /= 4; - if (value >= 0xff) + if (value > 0xff) { as_bad_where (fixP->fx_file, fixP->fx_line, _("offset out of range")); @@ -11446,7 +11446,7 @@ md_apply_fix (fixS * fixP, newval |= (1 << 23); else value = -value; - if (value >= 0xfff) + if (value > 0xfff) { as_bad_where (fixP->fx_file, fixP->fx_line, _("offset out of range")); @@ -11461,7 +11461,7 @@ md_apply_fix (fixS * fixP, newval |= (1 << 9); else value = -value; - if (value >= 0xff) + if (value > 0xff) { as_bad_where (fixP->fx_file, fixP->fx_line, _("offset out of range")); @@ -11472,7 +11472,7 @@ md_apply_fix (fixS * fixP, else if ((newval & 0x00000f00) == 0x00000e00) { /* T-instruction: positive 8-bit offset. */ - if (value < 0 || value >= 0xff) + if (value < 0 || value > 0xff) { as_bad_where (fixP->fx_file, fixP->fx_line, _("offset out of range")); |