ld/testsuite/
authorDaniel Jacobowitz <drow@false.org>
Mon, 23 Feb 2009 21:51:35 +0000 (21:51 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 23 Feb 2009 21:51:35 +0000 (21:51 +0000)
* 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
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/farcall-arm-arm-be.d [new file with mode: 0644]
ld/testsuite/ld-arm/farcall-thumb-arm-be.d [new file with mode: 0644]

index e6024c31139e07c269072cdb332aac24b137d9fb..775166c358cba0edb99f011ed059df592edff24e 100644 (file)
@@ -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.
index 43b6f80a6f0345d7fa75a40b6e09784c8fd4d02e..2e32aea31377f8c671d95f14c743b04023103595 100644 (file)
@@ -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 (file)
index 0000000..e4c8ca3
--- /dev/null
@@ -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 (file)
index 0000000..d7d2b04
--- /dev/null
@@ -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