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); }