aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-06-09 06:00:09 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-06-09 06:00:09 +0000
commit56d4d7f261e8a259d1eaf7454015f6f184b36d2e (patch)
treefe6cf7a1d97c753bd5441d7d65046267d7f55bcf /ld
parentadc7571d319f150964da9eb81db6f0a1f9dfcf82 (diff)
downloadgdb-56d4d7f261e8a259d1eaf7454015f6f184b36d2e.zip
gdb-56d4d7f261e8a259d1eaf7454015f6f184b36d2e.tar.gz
gdb-56d4d7f261e8a259d1eaf7454015f6f184b36d2e.tar.bz2
Build x32 DSO from x86-64 object file only for native.
2011-06-08 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/x86-64.exp: Build x32 DSO from x86-64 object file only for native.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-x86-64/x86-64.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 93096b0..43b678f 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
+ * ld-x86-64/x86-64.exp: Build x32 DSO from x86-64 object file
+ only for native.
+
+2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
+
* ld-x86-64/simple.c: New.
* ld-x86-64/x86-64-x32.rd: Likewise.
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index 8d4ed2c..2cb1891 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -204,8 +204,8 @@ run_dump_test "lp64-1"
run_dump_test "lp64-2"
run_dump_test "lp64-3"
-# Need the C compiler
-if { [which $CC] != 0 } {
+# Must be native with the C compiler
+if { [isnative] && [which $CC] != 0 } {
run_cc_link_tests {
{"Helper X32 DSO from x86-64 object" "" "-m64 -fPIC -g"
{simple.c} {} "libsimple.a"}