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, 2 insertions, 2 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 63fd2b8..9f4c922 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -28,6 +28,7 @@
#include <utility>
#include "parameters.h"
+#include "options.h"
#include "output.h"
#include "symtab.h"
#include "dynobj.h"
@@ -52,8 +53,7 @@ Layout_task_runner::run(Workqueue* workqueue, const Task* task)
// Now we know the final size of the output file and we know where
// each piece of information goes.
- Output_file* of = new Output_file(this->options_,
- this->input_objects_->target());
+ Output_file* of = new Output_file(parameters->output_file_name());
of->open(file_size);
// Queue up the final set of tasks.