Strip global symbol defined in discarded section
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / elf.exp
index f126650fc3528f5b3826c4e14ac1a18380a3a8f4..af0b09187a4c37cf11bda76310c97301d69a4e2d 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for various ELF tests.
-#   Copyright (C) 2002-2015 Free Software Foundation, Inc.
+#   Copyright (C) 2002-2016 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -77,7 +77,7 @@ if { ![istarget hppa64*-hpux*] } {
     }
 }
 
-# Only run these tests on targets thats support creating shared libraries.
+# Only run these tests on targets that support creating shared libraries.
 if { [check_shared_lib_support] } then {
     # Run a test to check linking a shared library with a broken linker
     # script that accidentally marks dynamic sections as notes.  The
@@ -107,6 +107,16 @@ if { [check_shared_lib_support] } then {
            "--as-needed" "--start-group tmpdir/pr17068a.a tmpdir/pr17068.so tmpdir/pr17068b.a --end-group" ""
            {start.s pr17068.s} {} "pr17068"}
     }
+    # xfail on tic6x due to non-PIC/non-PID warnings
+    setup_xfail "tic6x-*-*"
+    # Fails on MIPS because ABI trickery means that a NULL reloc is also emitted.
+    setup_xfail "mips*-*-*"
+    run_ld_link_tests {
+       {"-Bsymbolic-functions"
+           "-shared -Bsymbolic-functions" "" ""
+           {symbolic-func.s} {{readelf {-r --wide} symbolic-func.r}}
+           "symbolic-func.so"}
+    }
 }
 
 set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
This page took 0.023701 seconds and 4 git commands to generate.