diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-01-09 09:01:53 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-01-09 09:01:53 -0800 |
commit | 92c09111f34c464c3dd2b0cfbfa13c3b6c74c3e5 (patch) | |
tree | b2a7f2670a76ec18668f470d5242db16abb73eb0 /ld/testsuite/ld-plugin | |
parent | 09bf66a8e8f7e62f6e842b42b048721abef49904 (diff) | |
download | gdb-92c09111f34c464c3dd2b0cfbfa13c3b6c74c3e5.zip gdb-92c09111f34c464c3dd2b0cfbfa13c3b6c74c3e5.tar.gz gdb-92c09111f34c464c3dd2b0cfbfa13c3b6c74c3e5.tar.bz2 |
Add and use check_lto_shared_available
2014-01-09 Vidya Praveen <vidyapraveen@arm.com>
* lib/ld-lib.exp (check_lto_shared_available): New check.
* ld-plugin/lto.exp: Use check_lto_shared_available.
Diffstat (limited to 'ld/testsuite/ld-plugin')
-rw-r--r-- | ld/testsuite/ld-plugin/lto.exp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index 69946de..d55dca4 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -300,8 +300,7 @@ set lto_run_elf_tests { run_cc_link_tests $lto_link_tests # Restrict these to ELF targets that support shared libs and PIC. -if { [is_elf_format] - && [run_host_cmd_yesno $CC "-shared -fPIC $srcdir/$subdir/dummy.c -o tmpdir/t.so"] } { +if { [is_elf_format] && [check_lto_shared_available] } { run_cc_link_tests $lto_link_elf_tests set testname "PR ld/15146 (2)" set exec_output [run_host_cmd "$CC" "$gcc_gas_flag $gcc_ld_flag -O2 -flto -fuse-linker-plugin -Wl,-rpath-link,. -Wl,--no-copy-dt-needed-entries -Wl,--no-as-needed tmpdir/pr15146d.o tmpdir/pr15146c.so"] |