https://sourceware.org/bugzilla/show_bug.cgi?id=18703
--- Comment #14 from H.J. Lu <hjl.tools at gmail dot com> --- I created users/hjl/gold-test branch and added ld-elfvers/vers-gold.exp to run ld symbol version tests with gold: [hjl@gnu-6 ld]$ make check RUNTESTFLAGS="vers-gold.exp" ... Running /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/ld-elfvers/vers-gold.exp ... FAIL: vers1 FAIL: vers2 FAIL: vers3 FAIL: vers6 FAIL: vers8 ERROR: tcl error sourcing library file /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/lib/../ld-elfvers/vers.exp. cp: cannot stat 'tmpdir/vers1.so': No such file or directory cp: cannot stat 'tmpdir/vers1.so': No such file or directory while executing "exec cp $tmpdir/$srclib $tmpdir/$libname.so" (procedure "test_strip_vers_lib" line 11) invoked from within "test_strip_vers_lib "vers14" vers1.so vers14 vers1.ver vers1.dsym" (file "/export/gnu/import/git/sources/binutils-gdb/ld/testsuite/lib/../ld-elfvers/vers.exp" line 893) invoked from within "source /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/lib/../ld-elfvers/vers.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/lib/../ld-elfvers/vers.exp" invoked from within "catch "uplevel #0 source ${dir}/${initfile}" error" Makefile:3506: recipe for target 'check-DEJAGNU' failed make[3]: *** [check-DEJAGNU] Error 1 make[3]: Leaving directory '/export/build/gnu/binutils-gold/build-x86_64-linux/ld' Makefile:1852: recipe for target 'check-am' failed make[2]: *** [check-am] Error 2 make[2]: Leaving directory '/export/build/gnu/binutils-gold/build-x86_64-linux/ld' Makefile:1699: recipe for target 'check-recursive' failed make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory '/export/build/gnu/binutils-gold/build-x86_64-linux/ld' Makefile:1854: recipe for target 'check' failed make: *** [check] Error 2 [hjl@gnu-6 ld]$ The first failure is: /export/build/gnu/binutils-gold/build-x86_64-linux/ld/../gold/ld-new -o tmpdir/vers1.so --shared --no-undefined-version tmpdir/vers1.o --version-script /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/ld-elfvers/vers1.map Executing on host: sh -c {/export/build/gnu/binutils-gold/build-x86_64-linux/ld/../gold/ld-new -o tmpdir/vers1.so --shared --no-undefined-version tmpdir/vers1.o --version-script /export/gnu/import/git/sources/binutils-gdb/ld/testsuite/ld-elfvers/vers1.map 2>&1} /dev/null ld.tmp (timeout = 300) spawn [open ...]^M /export/build/gnu/binutils-gold/build-x86_64-linux/ld/../gold/ld-new: error: symbol show_foo has undefined version /export/build/gnu/binutils-gold/build-x86_64-linux/ld/../gold/ld-new: error: symbol show_foo has undefined version FAIL: vers1 I don't think you can expect gold will always generate the working output when symbol version is used. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils