This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATH: Restore file cache for bfd_openr
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 9 Jun 2005 13:55:20 +0930
- Subject: Re: PATH: Restore file cache for bfd_openr
- References: <200506082243.j58MhLss030145@sethra.codesourcery.com>
On Wed, Jun 08, 2005 at 03:43:21PM -0700, Mark Mitchell wrote:
> * opncls.c (bfd_openr): Call bfd_set_cacheable on returned BFDs.
I think it makes sense to do this in bfd_fopen instead, if fd != -1.
ie. Make your new bfd_fopen function default to the auto-close/open
behaviour. Thoughts?
--
Alan Modra
IBM OzLabs - Linux Technology Centre