aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-03 22:16:40 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-03 22:16:40 +0000
commit9675c281afc1e00a613f2820371043df844bff43 (patch)
treece9241e337e7505b30789d0f4eb4e95e516c371c /bfd/linker.c
parentd07445c31057d2ba49fb9f578ef85810b1701fdd (diff)
downloadgdb-9675c281afc1e00a613f2820371043df844bff43.zip
gdb-9675c281afc1e00a613f2820371043df844bff43.tar.gz
gdb-9675c281afc1e00a613f2820371043df844bff43.tar.bz2
* bfd.c (enum bfd_error): Define bfd_error_no_armap.
(bfd_errmsgs): Add string for bfd_error_no_armap. * bfd-in2.h: Rebuild. * ecoff.c (ecoff_link_add_archive_symbols): If an archive has no armap, set bfd_error_no_armap rather than bfd_error_no_symbols. * elfcode.h (elf_link_add_archive_symbols): Likewise. * linker.c (_bfd_generic_link_add_archive_symbols): Likewise.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index 0d7e47a..4ce41e9 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -867,7 +867,7 @@ _bfd_generic_link_add_archive_symbols (abfd, info, checkfn)
/* 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);
+ bfd_set_error (bfd_error_no_armap);
return false;
}