2009-02-26 Christophe Lyon <christophe.lyon@st.com>
commita94fa89fff54d3cb97cd6ebe2ef61d3e4d039e88
authorChristophe Lyon <christophe.lyon@st.com>
Thu, 26 Feb 2009 15:37:53 +0000 (26 15:37 +0000)
committerChristophe Lyon <christophe.lyon@st.com>
Thu, 26 Feb 2009 15:37:53 +0000 (26 15:37 +0000)
tree6fa07b6eda0847baae2d266a07c45e2a30fec3f6
parentf17d642b1e046036850aad18984196eeffdeea5c
2009-02-26  Christophe Lyon  <christophe.lyon@st.com>

bfd/
* elf32-arm.c (stub_reloc_type): Removed.
(insn_sequence): Renamed reloc_type field to r_type.
(elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
(elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
(elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
(elf32_arm_stub_type): Add new enum entries for the new stubs.
(arm_stub_is_thumb): Catch new stubs.
(arm_type_of_stub): Handle new stubs.
(arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
(bfd_elf32_arm_process_before_allocation): Remove useless
condition.

testsuite/
* ld-arm/arm-elf.exp: Add 3 tests for the 3 new stubs.
* ld-arm/farcall-thumb-arm-pic-veneer.d: New expected result, the
test is now expected to pass.
* ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Likewise.
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
bfd/ChangeLog
bfd/elf32-arm.c
ld/testsuite/ChangeLog
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d
ld/testsuite/ld-arm/farcall-thumb-thumb-m-pic-veneer.d
ld/testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d