aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-12 00:17:35 +0000
committerIan Lance Taylor <iant@google.com>2008-02-12 00:17:35 +0000
commit0e43bb4edd02c76feb1735e057ea302be13404a9 (patch)
tree812c4344fd3a8fa7ef1f7b9c32d191a9b469498b
parent33a3a153165ddb30daeeb6d3e116911e9a7ad612 (diff)
downloadgdb-0e43bb4edd02c76feb1735e057ea302be13404a9.zip
gdb-0e43bb4edd02c76feb1735e057ea302be13404a9.tar.gz
gdb-0e43bb4edd02c76feb1735e057ea302be13404a9.tar.bz2
Pass down alignment when adding input section to orphan section.
-rw-r--r--gold/script-sections.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/script-sections.cc b/gold/script-sections.cc
index 341599c..db0c53b 100644
--- a/gold/script-sections.cc
+++ b/gold/script-sections.cc
@@ -1914,7 +1914,8 @@ Orphan_output_section::set_section_addresses(Symbol_table*, Layout*,
}
address = align_address(address, addralign);
- this->os_->add_input_section_for_script(p->first, p->second, size, 0);
+ this->os_->add_input_section_for_script(p->first, p->second, size,
+ addralign);
address += size;
}