forked from Imagelibrary/binutils-gdb
ARM/opcodes: Fix negative hexadecimal offset disassembly
2014-08-21 Nathan Sidwell <nathan@codesourcery.com> Maciej W. Rozycki <macro@codesourcery.com> opcodes/ * arm-dis.c (print_arm_address): Negate the GPR-relative offset returned if the U bit is set. 2014-08-21 Paul Brook <paul@codesourcery.com> gas/testsuite/ * gas/arm/arch7a-mp.d: Adjust according to `print_arm_address' offset fix. * gas/arm/arch7r-mp.d: Likewise.
This commit is contained in:
@@ -2583,6 +2583,8 @@ print_arm_address (bfd_vma pc, struct disassemble_info *info, long given)
|
||||
arm_decode_shift (given, func, stream, TRUE);
|
||||
}
|
||||
}
|
||||
if (NEGATIVE_BIT_SET)
|
||||
offset = -offset;
|
||||
}
|
||||
|
||||
return (signed long) offset;
|
||||
|
||||
Reference in New Issue
Block a user