mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* linker.c (_bfd_generic_link_add_archive_symbols): It's not an
error if an empty archive has no symbol table. * ecoff.c (ecoff_link_add_archive_symbols): Likewise. * elfcode.h (elf_link_add_archive_symbols): Likewise.
This commit is contained in:
@ -3738,6 +3738,9 @@ elf_link_add_archive_symbols (abfd, info)
|
||||
|
||||
if (! bfd_has_map (abfd))
|
||||
{
|
||||
/* 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);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user