aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-10 19:02:07 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-10 19:02:07 -0800
commitd319a098bca9372e7d1840cd31c47d05b0c7540e (patch)
treeb833333d9dba5cbe8b09bf70a18f364d73c781f3 /ld
parent386047969d9d36980fd6c4129b372e4a400114e0 (diff)
downloadgdb-d319a098bca9372e7d1840cd31c47d05b0c7540e.zip
gdb-d319a098bca9372e7d1840cd31c47d05b0c7540e.tar.gz
gdb-d319a098bca9372e7d1840cd31c47d05b0c7540e.tar.bz2
Initialize use_mmap
* plugin.c (plugin_maybe_claim): Initialize use_mmap.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/plugin.c1
2 files changed, 5 insertions, 0 deletions
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);