aboutsummaryrefslogtreecommitdiff
path: root/gold/attributes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/attributes.cc')
-rw-r--r--gold/attributes.cc2
1 files changed, 1 insertions, 1 deletions
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);
}