aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2009-12-29 06:09:03 +0000
committerChris Demetriou <cgd@google.com>2009-12-29 06:09:03 +0000
commit250acde31a8008cfcbd969d25fb5b91ad9eaff34 (patch)
tree74995b652ddf687dfac3b65bac9e2b1b6072dc8d /gold
parent2e13ec5ccc61add7e8cdb1cfe1f659e78a4ada69 (diff)
downloadgdb-250acde31a8008cfcbd969d25fb5b91ad9eaff34.zip
gdb-250acde31a8008cfcbd969d25fb5b91ad9eaff34.tar.gz
gdb-250acde31a8008cfcbd969d25fb5b91ad9eaff34.tar.bz2
2009-12-28 Chris Demetriou <cgd@google.com>
* attributes.cc (Output_attributes_section_data::do_write): Use std::vector::front rather than std::vector::data.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/attributes.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index ed7f31d..345ec62 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-28 Chris Demetriou <cgd@google.com>
+
+ * attributes.cc (Output_attributes_section_data::do_write): Use
+ std::vector::front rather than std::vector::data.
+
2009-12-28 Ian Lance Taylor <iant@google.com>
* symtab.h (class Symbol_table): Add enum Defined.
diff --git a/gold/attributes.cc b/gold/attributes.cc
index 6b2260d..2024fda 100644
--- a/gold/attributes.cc
+++ b/gold/attributes.cc
@@ -451,7 +451,7 @@ Output_attributes_section_data::do_write(Output_file* of)
std::vector<unsigned char> buffer;
this->attributes_section_data_.write(&buffer);
gold_assert(convert_to_section_size_type(buffer.size()) == oview_size);
- memcpy(oview, buffer.data(), buffer.size());
+ memcpy(oview, &buffer.front(), buffer.size());
of->write_output_view(this->offset(), oview_size, oview);
}