[Top][All Lists]

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

[Bug ld/24723] Linker fails with "too many open files"

From: amodra at gmail dot com
Subject: [Bug ld/24723] Linker fails with "too many open files"
Date: Mon, 24 Jun 2019 07:12:41 +0000


Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-06-24
                 CC|                            |amodra at gmail dot com
     Ever confirmed|0                           |1

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
Thousands of files are handled fine by the linker when plugins aren't involved.
 See bfd/cache.c.  This comment from bfd/plugin.c explains why there is a
problem when using plugins:

  /* The plugin API expects that the file descriptor won't be closed
     and reused as done by the bfd file cache.  So open it again.
     dup isn't good enough.  plugin IO uses lseek/read while BFD uses
     fseek/fread.  It isn't wise to mix the unistd and stdio calls on
     the same underlying file descriptor.  */

Until the gcc plugin API is fixed there isn't much the linker can do about
running out of file descriptors.

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]