bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12004] "ar --plugin" doesn't work with more than 9 files


From: hjl dot tools at gmail dot com
Subject: [Bug binutils/12004] "ar --plugin" doesn't work with more than 9 files
Date: 15 Sep 2010 14:51:30 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2010-09-15 
14:51 -------
The problem is

#define BFD_CACHE_MAX_OPEN 10
...

bfd_boolean
bfd_cache_init (bfd *abfd)
{
  BFD_ASSERT (abfd->iostream != NULL);
  if (open_files >= BFD_CACHE_MAX_OPEN)
    {   
      if (! close_one ()) 
        return FALSE;
    }   
  abfd->iovec = &cache_iovec;
  insert (abfd);
  ++open_files;
  return TRUE;
}

When you use AR with more than 9 files, one of them
will be closed. But plugin isn't prepared to deal with it.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|assertion fail              |"ar --plugin" doesn't work
                   |../../binutils/bfd/plugin.c:|with more than 9 files
                   |250 while using ar with gcc |
                   |lto plugin                  |


http://sourceware.org/bugzilla/show_bug.cgi?id=12004

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

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