aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-11-09 13:04:04 +1030
committerAlan Modra <amodra@gmail.com>2020-11-09 14:09:01 +1030
commit904790e24f4a332d0eedf302e417d0f16625f12f (patch)
treeeb23159a218f730e931a3ab3bdf281f1449f9c2b /bfd/archive.c
parentc9af384513858f3e30bdb71c12662dd1e5f9f673 (diff)
downloadgdb-904790e24f4a332d0eedf302e417d0f16625f12f.zip
gdb-904790e24f4a332d0eedf302e417d0f16625f12f.tar.gz
gdb-904790e24f4a332d0eedf302e417d0f16625f12f.tar.bz2
xcoff dependency list for static libraries
This patch fixes fails adding library dependencies for xcoff, and improves the error message should stat fail for an archive member. "tmpdir/artest.a: File not found" is plainly wrong. Fixes these fails: powerpc-aix5.1 +FAIL: ar adding library dependencies powerpc-aix5.2 +FAIL: ar adding library dependencies rs6000-aix4.3.3 +FAIL: ar adding library dependencies rs6000-aix5.1 +FAIL: ar adding library dependencies rs6000-aix5.2 +FAIL: ar adding library dependencies * archive.c (bfd_ar_hdr_from_filesystem): Use bfd_set_input_error when stat of archive member fails. * coff-rs6000.c (xcoff_write_archive_contents_old), (xcoff_write_archive_contents_big): Likewise, and handle in-memory bfd.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 9d63849..1836b9b 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1875,7 +1875,7 @@ bfd_ar_hdr_from_filesystem (bfd *abfd, const char *filename, bfd *member)
}
else if (stat (filename, &status) != 0)
{
- bfd_set_error (bfd_error_system_call);
+ bfd_set_input_error (member, bfd_error_system_call);
return NULL;
}