2011-07-05 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Wed, 6 Jul 2011 17:58:42 +0000 (17:58 +0000)
committerDoug Kwan <dougkwan@google.com>
Wed, 6 Jul 2011 17:58:42 +0000 (17:58 +0000)
commitf6cccc2cd840baa795beb501a7afc4453000095e
tree29709b33db15ea8718ef9f63aea98fa909c0c919
parent8f7ae686826051abd08d0e72a8bf66b39d3ff9ce
2011-07-05  Doug Kwan  <dougkwan@google.com>

PR gold/12771
* arm.cc (Arm_relocate_functions::abs8): Use int32_t for addend and
Arm_Address type for relocation result.
(Arm_relocate_functions::abs16): Use unaligned access.  Also fix
overflow check.
(Arm_relocate_functions::abs32): Use unaligned access.
(Arm_relocate_functions::rel32): Ditto.
(Arm_relocate_functions::prel31): Ditto.
(Arm_exidix_cantunwind::do_fixed_endian_write): Ditto.
* testsuite/Makefile.am: Add new test arm_unaligned_reloc for unaligned
static data relocations.
* testsuite/Makefile.in: Regnerate.
* testsuite/arm_unaligned_reloc.{s,sh}: New files.
gold/ChangeLog
gold/arm.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/arm_unaligned_reloc.s [new file with mode: 0644]
gold/testsuite/arm_unaligned_reloc.sh [new file with mode: 0755]