From 54f16fc4bb74dbcaf6e77c340a1ae8bb9bf0c2f0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 29 Oct 1994 16:20:41 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 7 +++++++ bfd/elfcode.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 99da14d..b42d6cf 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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: 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; } -- 2.7.4