This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Initialize use_mmap


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d319a098bca9372e7d1840cd31c47d05b0c7540e

commit d319a098bca9372e7d1840cd31c47d05b0c7540e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Feb 10 19:02:07 2015 -0800

    Initialize use_mmap
    
    	* plugin.c (plugin_maybe_claim): Initialize use_mmap.

Diff:
---
 ld/ChangeLog | 4 ++++
 ld/plugin.c  | 1 +
 2 files changed, 5 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index b17fa40..df71ec2 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
 2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* plugin.c (plugin_maybe_claim): Initialize use_mmap.
+
+2015-02-10  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* plugin.c (plugin_input_file_t): Add use_mmap.
 	(plugin_pagesize): New.
 	(get_view): Use plugin_pagesize.  Set use_mmap if mmap is used.
diff --git a/ld/plugin.c b/ld/plugin.c
index 89083db..e5bdb01 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -1080,6 +1080,7 @@ plugin_maybe_claim (lang_input_statement_type *entry)
   input->view_buffer.filesize = 0;
   input->view_buffer.offset = 0;
   input->fd = fd;
+  input->use_mmap = FALSE;
   input->offset = offset;
   input->filesize = filesize;
   input->name = plugin_strdup (abfd, ibfd->filename);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]