* elflink.h (elf_link_add_object_symbols): Handle .symver x, x@FOO. ld/testsuite/ * ld-shared/shared.exp: Run on s390*-*-linux* and x86_64-*-linux* too. xfail tests linking non-pic code into shared libs on x86_64-*-linux*. * ld-elfvsb/elfvsb.exp: Likewise. * ld-elfvers/vers.exp: Likewise. Add vers24a, vers24b and vers24c tests. * ld-elfvers/vers3.ver: Allow VERS_2.0 to come before GLIBC_* version. * ld-elfvers/vers19.ver: Likewise. * ld-elfvers/vers24a.c: New test. * ld-elfvers/vers24b.c: New test. * ld-elfvers/vers24c.c: New test. * ld-elfvers/vers24.map: New test. * ld-elfvers/vers24.rd: New test. * lib/ld-lib.exp (run_ld_link_tests): Add optional 7th argument cflags. If source files have .c extension, compile them first.
* ld-elfvers/vers.exp: Revert the last change. * ld-elfvers/vers2.ver: Put back "tmpdir/" the version references. * ld-elfvers/vers3.ver: Likewise. * ld-elfvers/vers6.ver: Likewise. * ld-elfvers/vers18.ver: Likewise.
* ld-elfvers/vers.exp: Pass "-rpath .:$tmpdir" to "vers19". * ld-elfvers/vers1.ver: Remove "tmpdir/" from the version definition. * ld-elfvers/vers2.ver: Likewise. * ld-elfvers/vers3.ver: Likewise. * ld-elfvers/vers4a.ver: Likewise. * ld-elfvers/vers6.ver: Likewise. * ld-elfvers/vers7a.ver: Likewise. * ld-elfvers/vers8.ver: Likewise. * ld-elfvers/vers9.ver: Likewise. * ld-elfvers/vers15.ver: Likewise. * ld-elfvers/vers16a.ver: Likewise. * ld-elfvers/vers17.ver: Likewise. * ld-elfvers/vers18.ver: Likewise.