http://sourceware.org/bugzilla/show_bug.cgi?id=14475
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-15 20:01:42 UTC --- copy_archive has filename = bfd_get_filename (obfd); if (!bfd_close (obfd)) { status = 1; bfd_nonfatal_message (filename, NULL, NULL, NULL); return; } filename = bfd_get_filename (ibfd); if (!bfd_close (ibfd)) { status = 1; bfd_nonfatal_message (filename, NULL, NULL, NULL); return; } /* Delete all the files that we opened. */ for (l = list; l != NULL; l = l->next) { if (l->obfd == NULL) rmdir (l->name); else { bfd_close (l->obfd); unlink (l->name); } } Since if (!bfd_close (obfd)) closed all output bfds now, bfd_close (l->obfd) closes a closed bfd. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils