mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
2006-02-21 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (md_apply_fix): Fix off-by-one errors.
This commit is contained in:
@ -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>
|
2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
|
||||||
Anil Paranjape <anilp1@kpitcummins.com>
|
Anil Paranjape <anilp1@kpitcummins.com>
|
||||||
Shilin Shakti <shilins@kpitcummins.com>
|
Shilin Shakti <shilins@kpitcummins.com>
|
||||||
|
@ -11431,7 +11431,7 @@ md_apply_fix (fixS * fixP,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
value /= 4;
|
value /= 4;
|
||||||
if (value >= 0xff)
|
if (value > 0xff)
|
||||||
{
|
{
|
||||||
as_bad_where (fixP->fx_file, fixP->fx_line,
|
as_bad_where (fixP->fx_file, fixP->fx_line,
|
||||||
_("offset out of range"));
|
_("offset out of range"));
|
||||||
@ -11446,7 +11446,7 @@ md_apply_fix (fixS * fixP,
|
|||||||
newval |= (1 << 23);
|
newval |= (1 << 23);
|
||||||
else
|
else
|
||||||
value = -value;
|
value = -value;
|
||||||
if (value >= 0xfff)
|
if (value > 0xfff)
|
||||||
{
|
{
|
||||||
as_bad_where (fixP->fx_file, fixP->fx_line,
|
as_bad_where (fixP->fx_file, fixP->fx_line,
|
||||||
_("offset out of range"));
|
_("offset out of range"));
|
||||||
@ -11461,7 +11461,7 @@ md_apply_fix (fixS * fixP,
|
|||||||
newval |= (1 << 9);
|
newval |= (1 << 9);
|
||||||
else
|
else
|
||||||
value = -value;
|
value = -value;
|
||||||
if (value >= 0xff)
|
if (value > 0xff)
|
||||||
{
|
{
|
||||||
as_bad_where (fixP->fx_file, fixP->fx_line,
|
as_bad_where (fixP->fx_file, fixP->fx_line,
|
||||||
_("offset out of range"));
|
_("offset out of range"));
|
||||||
@ -11472,7 +11472,7 @@ md_apply_fix (fixS * fixP,
|
|||||||
else if ((newval & 0x00000f00) == 0x00000e00)
|
else if ((newval & 0x00000f00) == 0x00000e00)
|
||||||
{
|
{
|
||||||
/* T-instruction: positive 8-bit offset. */
|
/* 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,
|
as_bad_where (fixP->fx_file, fixP->fx_line,
|
||||||
_("offset out of range"));
|
_("offset out of range"));
|
||||||
|
Reference in New Issue
Block a user