From: Chris Demetriou Date: Tue, 29 Dec 2009 06:09:03 +0000 (+0000) Subject: 2009-12-28 Chris Demetriou X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=250acde31a8008cfcbd969d25fb5b91ad9eaff34;p=binutils-gdb.git 2009-12-28 Chris Demetriou * attributes.cc (Output_attributes_section_data::do_write): Use std::vector::front rather than std::vector::data. --- 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); }