mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 10:09:16 +08:00
libctf: bfd-open: mark the bfd as cacheable
Without this, the FD is only closed when the CTF file is, leading to running out of fds on (e.g.) very large links. New in v3. libctf/ * ctf-open-bfd.c (ctf_fdopen): Call bfd_set_cacheable.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
2019-07-30 Nick Alcock <nick.alcock@oracle.com>
|
||||
|
||||
* ctf-open-bfd.c (ctf_fdopen): Call bfd_set_cacheable.
|
||||
|
||||
2019-07-13 Nick Alcock <nick.alcock@oracle.com>
|
||||
|
||||
* ctf-impl.h (includes): Include <sys/param.h> here.
|
||||
|
@ -312,6 +312,7 @@ ctf_fdopen (int fd, const char *filename, const char *target, int *errp)
|
||||
bfd_errmsg (bfd_get_error()));
|
||||
return (ctf_set_open_errno (errp, ECTF_FMT));
|
||||
}
|
||||
bfd_set_cacheable (abfd, 1);
|
||||
|
||||
if (!bfd_check_format (abfd, bfd_object))
|
||||
{
|
||||
|
Reference in New Issue
Block a user