Build x32 DSO from x86-64 object file only for native.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2011 06:00:09 +0000 (06:00 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2011 06:00:09 +0000 (06:00 +0000)
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.

ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/x86-64.exp

index 93096b093b39cba031e74e15543b5f2e1fcaa9a4..43b678f66f9f459ec5820b3d98e75c21d4dad98b 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 8d4ed2c3589af8a95130646fc4c4f341b8fa1335..2cb1891a0271587b78df8ae7d34acfc1cdf7c77c 100644 (file)
@@ -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"}