diff options
author | Alan Modra <amodra@gmail.com> | 2016-07-20 15:06:49 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-07-21 11:30:34 +0930 |
commit | 5df1bc570fcc5ef5257b7a044acdaeb6b95b9822 (patch) | |
tree | b0992244c629eaa0646c2dfd99dcf6487066f4f3 /bfd/elflink.c | |
parent | c092a4d9154f09e6c67648efb723878d7a74f44f (diff) | |
download | gdb-5df1bc570fcc5ef5257b7a044acdaeb6b95b9822.zip gdb-5df1bc570fcc5ef5257b7a044acdaeb6b95b9822.tar.gz 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 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index a994b83..5bc5740 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -11091,6 +11091,7 @@ elf_output_implib (bfd *abfd, struct bfd_link_info *info) symcount = _bfd_elf_filter_global_symbols (abfd, info, sympp, symcount); if (symcount == 0) { + bfd_set_error (bfd_error_no_symbols); (*_bfd_error_handler) (_("%B: no symbol found for import library"), implib_bfd); goto free_sym_buf; |