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.
This commit is contained in:
Chris Demetriou 2009-12-29 06:09:03 +00:00
parent 2e13ec5ccc
commit 250acde31a
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

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