aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael.espindola@gmail.com>2015-02-17 10:47:02 -0500
committerRafael Ávila de Espíndola <rafael.espindola@gmail.com>2015-02-17 10:47:02 -0500
commite0a1e121b39ac99e76b77b73cba1db40ef75c7c8 (patch)
treebbfb1ba81743eea081fa54d439aad0542f5ecbb1 /gold
parent45a4fb1a700abeb4b3d8315b312ab31eee8efe72 (diff)
downloadgdb-e0a1e121b39ac99e76b77b73cba1db40ef75c7c8.zip
gdb-e0a1e121b39ac99e76b77b73cba1db40ef75c7c8.tar.gz
gdb-e0a1e121b39ac99e76b77b73cba1db40ef75c7c8.tar.bz2
avoid std::vector copy.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/object.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 67efa58..5a72e98 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,9 @@
2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
+ * object.cc (write_local_symbols): avoid std::vector copy.
+
+2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
+
* merge.cc (get_output_offset): Use upper_bound instead of lower_bound.
2015-02-09 Mark Wielaard <mjw@redhat.com>
diff --git a/gold/object.cc b/gold/object.cc
index 8f16fe7..c90b67e 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -2589,7 +2589,7 @@ Sized_relobj_file<size, big_endian>::write_local_symbols(
dyn_oview = of->get_output_view(this->local_dynsym_offset_,
dyn_output_size);
- const Output_sections out_sections(this->output_sections());
+ const Output_sections& out_sections(this->output_sections());
gold_assert(this->local_values_.size() == loccount);