diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 9637cf37af..852ad6267c 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2019-07-30 Nick Alcock + + * ctf-open-bfd.c (ctf_fdopen): Call bfd_set_cacheable. + 2019-07-13 Nick Alcock * ctf-impl.h (includes): Include here. diff --git a/libctf/ctf-open-bfd.c b/libctf/ctf-open-bfd.c index 6fbbde8852..1083c87608 100644 --- a/libctf/ctf-open-bfd.c +++ b/libctf/ctf-open-bfd.c @@ -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)) {