diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2009-02-23 10:03:47 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@st.com> | 2009-02-23 10:03:47 +0000 |
commit | c2b4a39dd204173238cb5bb8a367dc68c8d803ad (patch) | |
tree | 82a16ebfa41b8badf75adfd5f885058c8c8a71aa /ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d | |
parent | 0c37646508ccd3222db567f20d0ed44a9c3ba1d2 (diff) | |
download | ppe42-binutils-c2b4a39dd204173238cb5bb8a367dc68c8d803ad.tar.gz ppe42-binutils-c2b4a39dd204173238cb5bb8a367dc68c8d803ad.zip |
2009-02-23 Christophe Lyon <christophe.lyon@st.com>
bfd/
* elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
code.
(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
(arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
BLX is not available. Fix typo in warning message. Add comments
and improve formatting.
(arm_build_one_stub): Adjust to new
elf32_arm_stub_long_branch_v4t_thumb_arm stub.
(arm_map_one_stub): Likewise.
testsuite/
* ld-arm/arm-elf.exp: Rewrite non-EABI variants of
thumb2-bl-as-thumb1-bad and thumb2-bl-bad tests, which now
pass. farcall-thumb-thumb now passes in EABI mode.
* ld-arm/farcall-thumb-arm-pic-veneer.d: Fixed name, source, as
and ld flags to match intended test.
* ld-arm/farcall-thumb-arm.d: New expected result.
* ld-arm/farcall-thumb-thumb-m.d: Likewise.
* ld-arm/farcall-thumb-thumb-m-pic-veneer.d: Fixed name and ld
flags.
* ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
* ld-arm/farcall-thumb-thumb.d: New expected result, this test is
now expected to pass.
* ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d: Likewise.
* ld-arm/thumb2-bl-bad-noeabi.d: Likewise.
* ld-arm/thumb2-bl-as-thumb1-bad.d: Update addresses according to
new use.
* ld-arm/thumb2-bl-as-thumb1-bad.s: Update comment.
Diffstat (limited to 'ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d')
-rw-r--r-- | ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d b/ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d index 749b58f566..fdf9d8a7ad 100644 --- a/ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d +++ b/ld/testsuite/ld-arm/thumb2-bl-as-thumb1-bad-noeabi.d @@ -1,4 +1,19 @@ -#name: Thumb-2-as-Thumb-1 BL failure test -#source: thumb2-bl-as-thumb1-bad.s -#ld: -Ttext 0x1000 --section-start .foo=0x401004 -#error: .*\(.text\+0x0\): relocation truncated to fit: R_ARM_THM_CALL against `bar' +.*: file format .* + +Disassembly of section .text: + +00001000 <__bar_veneer>: + 1000: b401 push {r0} + 1002: 4802 ldr r0, \[pc, #8\] \(100c <__bar_veneer\+0xc>\) + 1004: 4684 mov ip, r0 + 1006: bc01 pop {r0} + 1008: 4760 bx ip + 100a: bf00 nop + 100c: 0100100d .word 0x0100100d + +00001010 <_start>: + 1010: f7ff fff6 bl 1000 <__bar_veneer> +Disassembly of section .foo: + +0100100c <bar>: + 100100c: 4770 bx lr |