From 2531fd8e8836c9456715180b57bfcea819e5ca57 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 23 Feb 2009 21:51:35 +0000 Subject: [PATCH] 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. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-arm/arm-elf.exp | 8 +++++++- ld/testsuite/ld-arm/farcall-arm-arm-be.d | 14 ++++++++++++++ ld/testsuite/ld-arm/farcall-thumb-arm-be.d | 17 +++++++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 ld/testsuite/ld-arm/farcall-arm-arm-be.d create mode 100644 ld/testsuite/ld-arm/farcall-thumb-arm-be.d diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e6024c31139..775166c358c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-02-23 Daniel Jacobowitz + + * 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 * 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 43b6f80a6f0..2e32aea3137 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 00000000000..e4c8ca39ea8 --- /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 : + 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 00000000000..d7d2b04ade7 --- /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 : + 2001014: e12fff1e bx lr -- 2.30.2