ld: Skip unsupported static executable tests
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 29 Jan 2018 12:54:57 +0000 (04:54 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 29 Jan 2018 12:55:23 +0000 (04:55 -0800)
commit98d72909f8f216fb9fc4d7c2c8e48dbe2823cd0b
treee357718d8f39db126db36a047097f42c3467f68a
parenteb77f6a4621795367a39cdd30957903af9dbb815
ld: Skip unsupported static executable tests

Skip static executable tests if static executable is unsupported.
Tested on Linux/x86 without libc.a.

PR ld/22732
* testsuite/config/default.exp (STATIC_LDFLAGS): New.  Set to
"-static" if target compiler supports it.
* testsuite/ld-bootstrap/bootstrap.exp: Skip static executable
tests if target compiler doesn't support it.
* testsuite/ld-ifunc/ifunc.exp: Likewise.
* testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Likewise.
(run_cc_link_tests): Likewise.
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-bootstrap/bootstrap.exp
ld/testsuite/ld-ifunc/ifunc.exp
ld/testsuite/lib/ld-lib.exp
This page took 0.026213 seconds and 4 git commands to generate.