aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-06 20:32:10 +0000
committerIan Lance Taylor <iant@google.com>2008-02-06 20:32:10 +0000
commitfbfba5088712eb014b9051baa71f9636359d159e (patch)
tree6836ec1f682dc1c4954429d9be124c268d530526 /gold/layout.cc
parent755ab8af10558c40e5090e92c46bbbd89815c292 (diff)
downloadgdb-fbfba5088712eb014b9051baa71f9636359d159e.zip
gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.gz
gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.bz2
Support creating empty output when there are no input objects.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 8b17f83..faae577 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -891,7 +891,7 @@ off_t
Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab,
const Task* task)
{
- Target* const target = input_objects->target();
+ Target* const target = parameters->target();
target->finalize_sections(this);