aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-11-30 23:52:50 +0000
committerIan Lance Taylor <iant@google.com>2006-11-30 23:52:50 +0000
commit5a6f7e2db556f93765b75baf2d1ee1509225410d (patch)
tree6db53a1cd843958dc18135430dbf37bd7b92b17e /gold/gold.cc
parent2621033b5dbe773f00cb90d24604b70a1cead2f1 (diff)
downloadgdb-5a6f7e2db556f93765b75baf2d1ee1509225410d.zip
gdb-5a6f7e2db556f93765b75baf2d1ee1509225410d.tar.gz
gdb-5a6f7e2db556f93765b75baf2d1ee1509225410d.tar.bz2
Added a testsuite. More support for COPY relocations.
Diffstat (limited to 'gold/gold.cc')
-rw-r--r--gold/gold.cc49
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);
-}