fix bug in previous delta
This commit is contained in:
parent
aff05906d2
commit
ddda4409ce
|
@ -1607,6 +1607,14 @@ arm_add_to_rel (abfd, address, howto, increment)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add in the increment, (which is a byte value). */
|
/* Add in the increment, (which is a byte value). */
|
||||||
|
switch (howto->type)
|
||||||
|
{
|
||||||
|
case R_ARM_THM_PC22:
|
||||||
|
default:
|
||||||
|
addend += increment;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case R_ARM_PC24:
|
||||||
addend <<= howto->size;
|
addend <<= howto->size;
|
||||||
addend += increment;
|
addend += increment;
|
||||||
|
|
||||||
|
@ -1614,6 +1622,8 @@ arm_add_to_rel (abfd, address, howto, increment)
|
||||||
|
|
||||||
/* Drop any undesired bits. */
|
/* Drop any undesired bits. */
|
||||||
addend >>= howto->rightshift;
|
addend >>= howto->rightshift;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
contents = (contents & ~ howto->dst_mask) | (addend & howto->dst_mask);
|
contents = (contents & ~ howto->dst_mask) | (addend & howto->dst_mask);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue