aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-04-11 22:55:13 +0000
committerIan Lance Taylor <ian@airs.com>2008-04-11 22:55:13 +0000
commit759b1a245d3a5953d0bed982f81e5f91eff286f8 (patch)
tree78666d8dc077841ce25532e3b9745cc7cfbdf601 /gold/output.cc
parentc2b45e22d5570064d11783c46bc392cb8d387db4 (diff)
downloadgdb-759b1a245d3a5953d0bed982f81e5f91eff286f8.zip
gdb-759b1a245d3a5953d0bed982f81e5f91eff286f8.tar.gz
gdb-759b1a245d3a5953d0bed982f81e5f91eff286f8.tar.bz2
* output.h (class Output_section_data): Remove inline definition
of set_addralign. * output.cc (Output_section_data::set_addralign): New function.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 9ec1462..48609a2 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -535,6 +535,18 @@ Output_section_data::do_out_shndx() const
return this->output_section_->out_shndx();
}
+// Set the alignment, which means we may need to update the alignment
+// of the output section.
+
+void
+Output_section_data::set_addralign(uint64_t addralign)
+{
+ this->addralign_ = addralign;
+ if (this->output_section_ != NULL
+ && this->output_section_->addralign() < addralign)
+ this->output_section_->set_addralign(addralign);
+}
+
// Output_data_strtab methods.
// Set the final data size.