From 0e43bb4edd02c76feb1735e057ea302be13404a9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 12 Feb 2008 00:17:35 +0000 Subject: [PATCH] Pass down alignment when adding input section to orphan section. --- gold/script-sections.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 341599c5b47..db0c53b5170 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; } -- 2.30.2