]> Git Repo - binutils.git/blobdiff - ld/ldmain.c
Add support for ARM-PE.
[binutils.git] / ld / ldmain.c
index 091f776f42281b4df2a166b3122d8192c92c66a7..e6bf23dbdd559ddb72fa0bdbd3a7f71033c05d54 100644 (file)
@@ -23,6 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "sysdep.h"
 #include <stdio.h>
 #include "libiberty.h"
+#include "progress.h"
 #include "bfdlink.h"
 
 #include "config.h"
@@ -72,6 +73,9 @@ boolean trace_file_tries;
    instead of complaining if no input files are given.  */
 boolean version_printed;
 
+/* Nonzero means link in every member of an archive.  */
+boolean whole_archive;
+
 args_type command_line;
 
 ld_config_type config;
@@ -152,12 +156,15 @@ main (argc, argv)
   program_name = argv[0];
   xmalloc_set_program_name (program_name);
 
+  START_PROGRESS (program_name, 0);
+
   bfd_init ();
 
   xatexit (remove_output);
 
   /* Initialize the data about options.  */
   trace_files = trace_file_tries = version_printed = false;
+  whole_archive = false;
   config.traditional_format = false;
   config.build_constructors = true;
   config.dynamic_link = false;
@@ -228,7 +235,16 @@ main (argc, argv)
       if (isfile)
        ldfile_open_command_file (s);
       else
-       lex_redirect (s);
+       {
+         if (trace_file_tries)
+           {
+             info_msg ("using internal linker script:\n");
+             info_msg ("==================================================\n");
+             info_msg (s);
+             info_msg ("\n==================================================\n");
+           }
+         lex_redirect (s);
+       }
       parser_input = input_script;
       yyparse ();
     }
@@ -316,6 +332,8 @@ main (argc, argv)
        einfo ("%F%B: final close failed: %E\n", output_bfd);
     }
 
+  END_PROGRESS (program_name);
+
   if (config.stats)
     {
       extern char **environ;
This page took 0.025539 seconds and 4 git commands to generate.