aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 97917b0..0de42c2 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -383,9 +383,11 @@ Layout::find_first_load_seg()
off_t
Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab)
{
- const Target* const target = input_objects->target();
+ Target* const target = input_objects->target();
const int size = target->get_size();
+ target->finalize_sections(this);
+
Output_segment* phdr_seg = NULL;
if (input_objects->any_dynamic())
{