mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
* 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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user