diff mbox

[V2,4/4] ARM: asm-source.exp link options in case of armv7b target

Message ID 1413955589-5054-5-git-send-email-victor.kamensky@linaro.org
State New
Headers show

Commit Message

vkamensky Oct. 22, 2014, 5:26 a.m. UTC
gdb.asm/asm-source.exp fails in armv7b case, because it does
not pass --be8 option to link, as result instructions in asm-source
executable are in big endian order and crash with SIGILL.

Solution is to add --be8 option to link command during test creation.

gdb/testsuite/ChangeLog:

2014-10-21  Victor Kamensky  <victor.kamensky@linaro.org>

	* gdb.asm/asm-source.exp: Add armv7b case for target.
---
 gdb/testsuite/gdb.asm/asm-source.exp | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index fa4585c..153bc50 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -37,6 +37,10 @@  switch -glob -- [istarget] {
         set asm-flags "-no-mdebug -I${srcdir}/${subdir} $obj_include"
 	set debug-flags "-gdwarf-2"
     }
+    "armv7b-*-*" {
+	set asm-arch arm
+	append link-flags " -be8"
+    }
     "arm*-*-*" {
         set asm-arch arm
     }