Added a testsuite. More support for COPY relocations.
[deliverable/binutils-gdb.git] / gold / gold.cc
index 7c8ed8fc5bef8b9039929ecc2e56de1975e370bd..5051a13a6aaeaa31429592bca5050fcd781fee13 100644 (file)
@@ -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);
-}
This page took 0.025087 seconds and 4 git commands to generate.