* linker.c (_bfd_generic_link_add_archive_symbols): It's not an
authorIan Lance Taylor <ian@airs.com>
Sat, 29 Oct 1994 16:20:41 +0000 (16:20 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 29 Oct 1994 16:20:41 +0000 (16:20 +0000)
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.

bfd/ChangeLog
bfd/elfcode.h

index 99da14d6b0cf4bfa11ce753b4818b8c77ea0c569..b42d6cf2042b900b5e59885bd7694dd8b99af027 100644 (file)
@@ -1,3 +1,10 @@
+Sat Oct 29 12:18:10 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * 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.
+
 Fri Oct 28 10:08:41 1994  J.T. Conklin  (jtc@rtl.cygnus.com)
 
         NetBSD/m68k support, based on work by mikeb@snow.datametrics.com: 
index cdb51afda88dc43cd7d2a5b3dc9e6a243a145a54..d3b477f68103aa6c9158a1bd6a5696fb4b08e421 100644 (file)
@@ -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;
     }