diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-13 02:44:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-13 02:44:50 +0000 |
commit | 0daa6f62c88fe4d1dd680b09e855c4b8b7811403 (patch) | |
tree | f1d3948b1a9e9c87fa20dbac6b2437bcd81a3bf0 /gold/gold.cc | |
parent | caa9d5d9191af934ff7949fea080d72524c92cfa (diff) | |
download | binutils-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.zip binutils-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.tar.gz binutils-0daa6f62c88fe4d1dd680b09e855c4b8b7811403.tar.bz2 |
Support selecting target by name.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 1775db6..eefcb48 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -31,7 +31,6 @@ #include "options.h" #include "debug.h" -#include "target-select.h" #include "workqueue.h" #include "dirsearch.h" #include "readsyms.h" @@ -167,15 +166,7 @@ queue_middle_tasks(const General_options& options, // pass an empty archive to the linker and get an empty object file // out. In order to do this we need to use a default target. if (input_objects->number_of_input_objects() == 0) - { - // The GOLD_xx macros are defined by the configure script. - Target* target = select_target(elfcpp::GOLD_DEFAULT_MACHINE, - GOLD_DEFAULT_SIZE, - GOLD_DEFAULT_BIG_ENDIAN, - 0, 0); - gold_assert(target != NULL); - set_parameters_target(target); - } + set_parameters_target(options.default_target()); int thread_count = options.thread_count_middle(); if (thread_count == 0) |