diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-06 20:32:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-06 20:32:10 +0000 |
commit | fbfba5088712eb014b9051baa71f9636359d159e (patch) | |
tree | 6836ec1f682dc1c4954429d9be124c268d530526 /gold/layout.cc | |
parent | 755ab8af10558c40e5090e92c46bbbd89815c292 (diff) | |
download | gdb-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.cc | 2 |
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); |