* objcopy.c (copy_archive): Set output bfd format outside the loop.
This commit is contained in:
parent
9e2a48988a
commit
b667df2e28
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2001-12-18 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* objcopy.c (copy_archive): Set output bfd format outside the loop.
|
||||||
|
|
||||||
2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
|
2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
* po/ja.po: Import from translation project.
|
* po/ja.po: Import from translation project.
|
||||||
|
|
|
@ -1296,6 +1296,9 @@ copy_archive (ibfd, obfd, output_target)
|
||||||
|
|
||||||
this_element = bfd_openr_next_archived_file (ibfd, NULL);
|
this_element = bfd_openr_next_archived_file (ibfd, NULL);
|
||||||
|
|
||||||
|
if (!bfd_set_format (obfd, bfd_get_format (ibfd)))
|
||||||
|
RETURN_NONFATAL (bfd_get_filename (obfd));
|
||||||
|
|
||||||
while (!status && this_element != (bfd *) NULL)
|
while (!status && this_element != (bfd *) NULL)
|
||||||
{
|
{
|
||||||
/* Create an output file for this member. */
|
/* Create an output file for this member. */
|
||||||
|
@ -1323,9 +1326,6 @@ copy_archive (ibfd, obfd, output_target)
|
||||||
if (output_bfd == (bfd *) NULL)
|
if (output_bfd == (bfd *) NULL)
|
||||||
RETURN_NONFATAL (output_name);
|
RETURN_NONFATAL (output_name);
|
||||||
|
|
||||||
if (!bfd_set_format (obfd, bfd_get_format (ibfd)))
|
|
||||||
RETURN_NONFATAL (bfd_get_filename (obfd));
|
|
||||||
|
|
||||||
if (bfd_check_format (this_element, bfd_object) == true)
|
if (bfd_check_format (this_element, bfd_object) == true)
|
||||||
copy_object (this_element, output_bfd);
|
copy_object (this_element, output_bfd);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue