This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 5/5] ARM: asm-source.exp link options in case of armv7b target
- From: Victor Kamensky <victor dot kamensky at linaro dot org>
- To: gdb-patches at sourceware dot org
- Cc: victor dot kamensky at linaro dot org
- Date: Mon, 20 Oct 2014 17:57:01 -0700
- Subject: [PATCH 5/5] ARM: asm-source.exp link options in case of armv7b target
- Authentication-results: sourceware.org; auth=none
- References: <1413853021-4393-1-git-send-email-victor dot kamensky at linaro dot org>
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 | 4 ++++
gdb/testsuite/gdb.asm/asm-source.exp | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b7cc1c6..1d5fefa 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-10-13 Victor Kamensky <victor.kamensky@linaro.org>
+
+ * gdb.asm/asm-source.exp: add armv7b case for target.
+
2014-09-30 Yao Qi <yao@codesourcery.com>
* lib/prelink-support.exp (build_executable_own_libs): Error if
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
}
--
1.8.1.4