aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index cdb51af..d3b477f 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -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;
}