diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-06-09 06:00:07 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-06-09 06:00:07 +0000 |
commit | 4c38478dc6e359675743156ce712285daa6d1759 (patch) | |
tree | db8f1b07a15104da7ee7160f93daedb52d9c7d13 /ld | |
parent | f89df307089850d80aacea36f871a2fa05e3771f (diff) | |
download | binutils-redhat-4c38478dc6e359675743156ce712285daa6d1759.tar.gz |
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/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 93096b093b..43b678f66f 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 8d4ed2c358..2cb1891a02 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"} |