2011-07-05 Doug Kwan <dougkwan@google.com>
commit0945e996f64bc633d8bdaf4229e700ac31539a6e
authorDoug Kwan <dougkwan@google.com>
Wed, 6 Jul 2011 17:58:41 +0000 (6 17:58 +0000)
committerDoug Kwan <dougkwan@google.com>
Wed, 6 Jul 2011 17:58:41 +0000 (6 17:58 +0000)
tree6530527f0fb076f75612b247d49a54f740026e41
parentc31b10a47baba685c97ee9833e026e46a95cf70b
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]