bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/14475] strip is broken on archive


From: hjl.tools at gmail dot com
Subject: [Bug binutils/14475] strip is broken on archive
Date: Wed, 15 Aug 2012 20:01:42 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]