diff options
author | Howard Chu <hyc@symas.com> | 2020-11-08 15:07:28 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-11-09 14:07:19 +1030 |
commit | c9af384513858f3e30bdb71c12662dd1e5f9f673 (patch) | |
tree | 5e0dfb10d91ffbce567e0da1004453efb20fac69 /binutils | |
parent | 6e1605e43068f57f49bb0cdcea087adbad2cc6ac (diff) | |
download | fsf-binutils-gdb-c9af384513858f3e30bdb71c12662dd1e5f9f673.zip fsf-binutils-gdb-c9af384513858f3e30bdb71c12662dd1e5f9f673.tar.gz fsf-binutils-gdb-c9af384513858f3e30bdb71c12662dd1e5f9f673.tar.bz2 |
Re: dependency list for static libraries
This feature doesn't actually require plugin support, that was a
mistake in the previous patch. Fixes these fails:
hppa-hp-hpux10 +FAIL: ar adding library dependencies
i386-bsd +FAIL: ar adding library dependencies
i386-msdos +FAIL: ar adding library dependencies
ns32k-netbsd +FAIL: ar adding library dependencies
ns32k-pc532-mach +FAIL: ar adding library dependencies
pdp11-dec-aout +FAIL: ar adding library dependencies
* ar.c (main): Use plugin_target rather than "target" when
resetting libdeps_bfd target.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/ar.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 2aa6a32..2e24faf 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2020-11-09 Howard Chu <hyc@symas.com> + + * ar.c (main): Use plugin_target rather than "target" when + resetting libdeps_bfd target. + 2020-11-06 H.J. Lu <hongjiu.lu@intel.com> * elfedit.c: Include "libiberty.h". diff --git a/binutils/ar.c b/binutils/ar.c index 56c758c..537b139 100644 --- a/binutils/ar.c +++ b/binutils/ar.c @@ -866,7 +866,7 @@ main (int argc, char **argv) /* Create a bfd to contain the dependencies. It inherits its type from arch, but we must set the type to "binary" otherwise bfd_bwrite() will fail. After writing, we - must set the type back to "plugin" otherwise adding it to the + must set the type back to default otherwise adding it to the archive will fail. */ libdeps_bfd = bfd_create (LIBDEPS, arch); if (libdeps_bfd == NULL) @@ -887,7 +887,7 @@ main (int argc, char **argv) if (! bfd_make_readable (libdeps_bfd)) fatal (_("Cannot make libdeps object readable.")); - if (bfd_find_target ("plugin", libdeps_bfd) == NULL) + if (bfd_find_target (plugin_target, libdeps_bfd) == NULL) fatal (_("Cannot reset libdeps record type.")); /* Append our libdeps record to the list of files |