mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct the code for sign-extending a 16 bit value. As near as I can tell
this is effectively a no-op -- the addend term in MOVT/MOVW relocations always seems to be zero. But this is correct and the old code wasn't.
This commit is contained in:
parent
f9e8f40d28
commit
5dbfbb1512
1 changed files with 1 additions and 1 deletions
|
|
@ -5800,7 +5800,7 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
|
|||
if (globals->use_rel)
|
||||
{
|
||||
addend = ((insn >> 4) & 0xf000) | (insn & 0xfff);
|
||||
signed_addend = (addend ^ 0x10000) - 0x10000;
|
||||
signed_addend = (addend ^ 0x8000) - 0x8000;
|
||||
}
|
||||
|
||||
value += signed_addend;
|
||||
|
|
|
|||
Loading…
Reference in a new issue