* bfd.c (enum bfd_error): Define bfd_error_no_armap.

(bfd_errmsgs): Add string for bfd_error_no_armap.
	* bfd-in2.h: Rebuild.
	* ecoff.c (ecoff_link_add_archive_symbols): If an archive has no
	armap, set bfd_error_no_armap rather than bfd_error_no_symbols.
	* elfcode.h (elf_link_add_archive_symbols): Likewise.
	* linker.c (_bfd_generic_link_add_archive_symbols): Likewise.
This commit is contained in:
Ian Lance Taylor
1995-07-03 22:16:40 +00:00
parent d07445c310
commit 9675c281af
5 changed files with 248 additions and 741 deletions

View File

@ -867,7 +867,7 @@ _bfd_generic_link_add_archive_symbols (abfd, info, checkfn)
/* An empty archive is a special case. */
if (bfd_openr_next_archived_file (abfd, (bfd *) NULL) == NULL)
return true;
bfd_set_error (bfd_error_no_symbols);
bfd_set_error (bfd_error_no_armap);
return false;
}