diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-02-23 21:51:35 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-02-23 21:51:35 +0000 |
commit | 2531fd8e8836c9456715180b57bfcea819e5ca57 (patch) | |
tree | 0f12a6025bf0338ae284275558e987fcec22d039 /ld | |
parent | 461a49cacae7574c0f380957f125e96401f170e8 (diff) | |
download | gdb-2531fd8e8836c9456715180b57bfcea819e5ca57.zip gdb-2531fd8e8836c9456715180b57bfcea819e5ca57.tar.gz gdb-2531fd8e8836c9456715180b57bfcea819e5ca57.tar.bz2 |
ld/testsuite/
* ld-arm/arm-elf.exp (armeabitests): Run new tests. Correct BE8 output
filename.
* ld-arm/farcall-arm-arm-be.d, ld-arm/farcall-thumb-arm-be.d: New.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/arm-elf.exp | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/farcall-arm-arm-be.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/farcall-thumb-arm-be.d | 17 |
4 files changed, 44 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e6024c3..775166c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-02-23 Daniel Jacobowitz <dan@codesourcery.com> + + * ld-arm/arm-elf.exp (armeabitests): Run new tests. Correct BE8 output + filename. + * ld-arm/farcall-arm-arm-be.d, ld-arm/farcall-thumb-arm-be.d: New. + 2009-02-23 Christophe Lyon <christophe.lyon@st.com> * ld-arm/arm-elf.exp: Add new farcall-thumb-arm-be8 test. diff --git a/ld/testsuite/ld-arm/arm-elf.exp b/ld/testsuite/ld-arm/arm-elf.exp index 43b6f80..2e32aea 100644 --- a/ld/testsuite/ld-arm/arm-elf.exp +++ b/ld/testsuite/ld-arm/arm-elf.exp @@ -267,6 +267,9 @@ set armeabitests { {"ARM-ARM farcall (BE8)" "-Ttext 0x1000 --section-start .foo=0x2001020 -EB --be8" "-EB" {farcall-arm-arm.s} {{objdump -d farcall-arm-arm-be8.d}} "farcall-arm-arm-be8"} + {"ARM-ARM farcall (BE)" "-Ttext 0x1000 --section-start .foo=0x2001020 -EB" "-EB" {farcall-arm-arm.s} + {{objdump -d farcall-arm-arm-be.d}} + "farcall-arm-arm-be"} {"ARM-Thumb farcall" "-Ttext 0x1000 --section-start .foo=0x2001014" "" {farcall-arm-thumb.s} {{objdump -d farcall-arm-thumb.d}} @@ -299,7 +302,10 @@ set armeabitests { "farcall-thumb-arm"} {"Thumb-ARM farcall (BE8)" "-Ttext 0x1000 --section-start .foo=0x2001014 -EB --be8" "-W -EB" {farcall-thumb-arm.s} {{objdump -d farcall-thumb-arm-be8.d}} - "farcall-thumb-arm"} + "farcall-thumb-arm-be8"} + {"Thumb-ARM farcall (BE)" "-Ttext 0x1000 --section-start .foo=0x2001014 -EB" "-W -EB" {farcall-thumb-arm.s} + {{objdump -d farcall-thumb-arm-be.d}} + "farcall-thumb-arm-be"} {"Thumb-ARM (short) call" "-Ttext 0x1000 --section-start .foo=0x0002014" "-W" {farcall-thumb-arm-short.s} {{objdump -d farcall-thumb-arm-short.d}} "farcall-thumb-arm-short"} diff --git a/ld/testsuite/ld-arm/farcall-arm-arm-be.d b/ld/testsuite/ld-arm/farcall-arm-arm-be.d new file mode 100644 index 0000000..e4c8ca3 --- /dev/null +++ b/ld/testsuite/ld-arm/farcall-arm-arm-be.d @@ -0,0 +1,14 @@ +.*: file format .* + +Disassembly of section .text: + +00001000 <__bar_veneer>: + 1000: e51ff004 ldr pc, \[pc, #-4\] ; 1004 <__bar_veneer\+0x4> + 1004: 02001020 .word 0x02001020 + +00001008 <_start>: + 1008: ebfffffc bl 1000 <__bar_veneer> +Disassembly of section .foo: + +02001020 <bar>: + 2001020: e12fff1e bx lr diff --git a/ld/testsuite/ld-arm/farcall-thumb-arm-be.d b/ld/testsuite/ld-arm/farcall-thumb-arm-be.d new file mode 100644 index 0000000..d7d2b04 --- /dev/null +++ b/ld/testsuite/ld-arm/farcall-thumb-arm-be.d @@ -0,0 +1,17 @@ +.*: file format .* + +Disassembly of section .text: + +00001000 <__bar_from_thumb>: + 1000: 4778 bx pc + 1002: 46c0 nop.* + 1004: e51ff004 ldr pc, \[pc, #-4\] ; 1008 <__bar_from_thumb\+0x8> + 1008: 02001014 .word 0x02001014 + 100c: 00000000 .word 0x00000000 + +00001010 <_start>: + 1010: f7ff fff6 bl 1000 <__bar_from_thumb> +Disassembly of section .foo: + +02001014 <bar>: + 2001014: e12fff1e bx lr |