aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-07-20 15:06:49 +0930
committerAlan Modra <amodra@gmail.com>2016-07-21 11:30:34 +0930
commit5df1bc570fcc5ef5257b7a044acdaeb6b95b9822 (patch)
treeb0992244c629eaa0646c2dfd99dcf6487066f4f3 /ld/testsuite/lib
parentc092a4d9154f09e6c67648efb723878d7a74f44f (diff)
downloadfsf-binutils-gdb-5df1bc570fcc5ef5257b7a044acdaeb6b95b9822.zip
fsf-binutils-gdb-5df1bc570fcc5ef5257b7a044acdaeb6b95b9822.tar.gz
fsf-binutils-gdb-5df1bc570fcc5ef5257b7a044acdaeb6b95b9822.tar.bz2
Fix implib test failures
bfd/ * elf.c (_bfd_elf_filter_global_symbols): Skip local symbols. (swap_out_syms): Return an error when not finding ELF output section rather than asserting. * elflink.c (elf_output_implib): Call bfd_set_error on no symbols. ld/ * testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional parameter to pass list of xfails. * testsuite/ld-elf/elf.exp: Add xfails for implib tests. Tidy implib test formatting. Don't set .data start address. * testsuite/ld-elf/implib.s: Remove first .bss directive and replace second one with equivalent .section directive. * testsuite/ld-elf/empty-implib.out: Add expected final error. * testsuite/ld-elf/implib.rd: Update.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 62f9768..9cd1959 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1159,7 +1159,9 @@ proc ar_simple_create { ar aropts target objects } {
# in all other cases, any output from the linker during linking is
# treated as a sign of an error and FAILs the test.
#
-proc run_ld_link_tests { ldtests } {
+# args is an optional list of target triplets to be xfailed.
+#
+proc run_ld_link_tests { ldtests args } {
global ld
global as
global nm
@@ -1188,6 +1190,10 @@ proc run_ld_link_tests { ldtests } {
continue
}
+ foreach target $args {
+ setup_xfail $target
+ }
+
set ld_options [lindex $testitem 1]
set ld_after [lindex $testitem 2]
set as_options [lindex $testitem 3]