forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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".
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user