diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-04-12 08:12:18 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-07-13 13:31:17 -0700 |
commit | 727aa8de0510fc89c2e021452ad35d2c5f7b2c21 (patch) | |
tree | 1eed88528204a4ce9ddc93acdf20d0e790b9f294 /bfd/opncls.c | |
parent | 37567a2cdd8823c5700ec83b757179083446bf07 (diff) | |
download | fsf-binutils-gdb-727aa8de0510fc89c2e021452ad35d2c5f7b2c21.zip fsf-binutils-gdb-727aa8de0510fc89c2e021452ad35d2c5f7b2c21.tar.gz fsf-binutils-gdb-727aa8de0510fc89c2e021452ad35d2c5f7b2c21.tar.bz2 |
Add mmap.cusers/hjl/mmap/write
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r-- | bfd/opncls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index b86bbab..b1da1cd 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -242,7 +242,7 @@ bfd_fopen (const char *filename, const char *target, const char *mode, int fd) else nbfd->direction = write_direction; - if (! bfd_cache_init (nbfd)) + if (! bfd_mmap_init (nbfd)) { _bfd_delete_bfd (nbfd); return NULL; @@ -400,7 +400,7 @@ bfd_openstreamr (const char *filename, const char *target, void *streamarg) nbfd->filename = xstrdup (filename); nbfd->direction = read_direction; - if (! bfd_cache_init (nbfd)) + if (! bfd_mmap_init (nbfd)) { _bfd_delete_bfd (nbfd); return NULL; |