diff options
author | Nick Clifton <nickc@redhat.com> | 2020-04-17 13:03:53 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-04-17 13:03:53 +0100 |
commit | 49c16254b41d56c35ce788eae76a1c1bc22db7ac (patch) | |
tree | 4460dc0a0a071847242adef31631ac4d7b0bd709 /ld/testsuite/ld-elfvers | |
parent | 3557f442a1881271652581b4a66c206d5b348c5d (diff) | |
download | binutils-gdb-49c16254b41d56c35ce788eae76a1c1bc22db7ac.tar.gz |
Commit: Running the linker testsuite with clang
* testsuite/config/default.exp: If not already set then create the
CCC_OVERRIDE_OPTIONS environment variable to help when running the
testsuite with clang.
* testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
* testsuite/ld-elfvers/vers.exp: Add checks to detect if files
were built before attempting to copy them.
Diffstat (limited to 'ld/testsuite/ld-elfvers')
-rw-r--r-- | ld/testsuite/ld-elfvers/vers.exp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 6ab1e75db6a..ed48e1a6971 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -668,6 +668,10 @@ proc test_strip_vers_lib { test srclib libname verexp versymexp } { global tmpdir global objdump + if {! [file exists $tmpdir/$srclib] } then { + fail "$test ($tmpdir/$srclib does not exist)" + return + } verbose -log "cp $tmpdir/$srclib $tmpdir/$libname.so" exec cp $tmpdir/$srclib $tmpdir/$libname.so @@ -903,8 +907,12 @@ build_vers_lib_pic "vers18" vers18.c vers18 vers17.so vers18.map vers18.ver vers build_exec "vers19" vers19.c vers19 "-Wl,--no-as-needed,-rpath,.,-rpath-link,." vers18.so vers19.ver vers19.dsym "" build_vers_lib_no_pic "vers20a" vers20.c vers20a "" vers20.map vers20a.ver vers20.dsym "" -exec cp $tmpdir/vers20a.so $tmpdir/vers20b.so -build_vers_lib_no_pic "vers20" vers20.c vers20 "vers20a.so vers20b.so" vers20.map vers20.ver vers20.dsym "" +if {! [file exists $tmpdir/vers20a.so] } then { + fail "Building vers20a.so" +} else { + exec cp $tmpdir/vers20a.so $tmpdir/vers20b.so + build_vers_lib_no_pic "vers20" vers20.c vers20 "vers20a.so vers20b.so" vers20.map vers20.ver vers20.dsym "" +} # Test .symver override. build_vers_lib_pic "vers21" vers21.c vers21 "" vers21.map vers21.ver vers21.dsym vers21.sym @@ -984,7 +992,7 @@ if [string match "yes" $pic] then { build_vers_lib_no_pic "vers27c1" vers27c.c vers27c1 "vers27b.o vers27a.so" "" vers27c.ver vers27c.dsym "" build_vers_lib_no_pic "vers27c2" vers27c.c vers27c2 "vers27a.so vers27b.o" "" vers27c.ver vers27c.dsym "" build_vers_lib_pic "vers27d1" vers27d1.c vers27d1 "" vers27a.map vers27d.ver vers27d.dsym vers27d.sym - build_vers_lib_pic "vers27d2" vers27d2.c vers27d2 "" "" vers27b.ver vers27b.dsym "" + build_vers_lib_pic "vers27d2" vers27d2.c vers27d2 "" "" vers27b.ver vers27b.dsym "" build_executable "vers27d3" vers27d3.c vers27d3 "vers27b.o vers27d2.so vers27d1.so" "" vers27b.ver vers27b.dsym "" build_vers_lib_pic "vers27d4" vers27d2.c vers27d4 "vers27a.so" "" vers27d4.ver vers27d4.dsym "" build_executable "vers27d5" vers27d3.c vers27d5 "vers27d4.so vers27b.o vers27a.so" "" vers27b.ver vers27b.dsym "" |