diff options
Diffstat (limited to 'gold/gold.cc')
-rw-r--r-- | gold/gold.cc | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/gold/gold.cc b/gold/gold.cc index 7c8ed8f..5051a13 100644 --- a/gold/gold.cc +++ b/gold/gold.cc @@ -1,4 +1,4 @@ -// ld.c -- linker main function +// gold.cc -- main linker functions #include "gold.h" @@ -234,50 +234,3 @@ queue_final_tasks(const General_options& options, } } // End namespace gold. - -using namespace gold; - -int -main(int argc, char** argv) -{ -#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) - setlocale (LC_MESSAGES, ""); -#endif -#if defined (HAVE_SETLOCALE) - setlocale (LC_CTYPE, ""); -#endif - bindtextdomain (PACKAGE, LOCALEDIR); - textdomain (PACKAGE); - - gold::program_name = argv[0]; - - // Handle the command line options. - gold::Command_line command_line; - command_line.process(argc - 1, argv + 1); - - // The work queue. - gold::Workqueue workqueue(command_line.options()); - - // The list of input objects. - Input_objects input_objects; - - // The symbol table. - Symbol_table symtab; - - // The layout object. - Layout layout(command_line.options()); - - // Get the search path from the -L options. - Dirsearch search_path; - search_path.add(&workqueue, command_line.options().search_path()); - - // Queue up the first set of tasks. - queue_initial_tasks(command_line.options(), search_path, - command_line, &workqueue, &input_objects, - &symtab, &layout); - - // Run the main task processing loop. - workqueue.process(); - - gold::gold_exit(true); -} |