From 250acde31a8008cfcbd969d25fb5b91ad9eaff34 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Tue, 29 Dec 2009 06:09:03 +0000 Subject: [PATCH] 2009-12-28 Chris Demetriou * attributes.cc (Output_attributes_section_data::do_write): Use std::vector::front rather than std::vector::data. --- gold/ChangeLog | 5 +++++ gold/attributes.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index ed7f31d7680..345ec626695 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-12-28 Chris Demetriou + + * attributes.cc (Output_attributes_section_data::do_write): Use + std::vector::front rather than std::vector::data. + 2009-12-28 Ian Lance Taylor * symtab.h (class Symbol_table): Add enum Defined. diff --git a/gold/attributes.cc b/gold/attributes.cc index 6b2260d7b94..2024fda6296 100644 --- a/gold/attributes.cc +++ b/gold/attributes.cc @@ -451,7 +451,7 @@ Output_attributes_section_data::do_write(Output_file* of) std::vector 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); } -- 2.30.2