diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-10-29 16:20:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-10-29 16:20:41 +0000 |
commit | 54f16fc4bb74dbcaf6e77c340a1ae8bb9bf0c2f0 (patch) | |
tree | 6ed997991d8be9feab9234d330401dbbf32d1b05 /bfd/elfcode.h | |
parent | 68906e4c3fed6aa6edf534b415caa3dbddc294c6 (diff) | |
download | gdb-54f16fc4bb74dbcaf6e77c340a1ae8bb9bf0c2f0.zip gdb-54f16fc4bb74dbcaf6e77c340a1ae8bb9bf0c2f0.tar.gz gdb-54f16fc4bb74dbcaf6e77c340a1ae8bb9bf0c2f0.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 3 |
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; } |