* ldmain.c (trace_file_tries): Rename to 'verbose'.
* ldfile.c: Likewise.
* ldlang.c: Likewise.
* ldmain.h: Likewise.
* lexsup.c: Likewise.
* emultempl/elf32.em: Likewise.
* emultemp/spuelf.em: Likewise.
* pe-dll.c (pe_dll_generate_implib): Only print creation message
in verbose mode.
+2012-07-13 Nick Clifton <nickc@redhat.com>
+
+ PR ld/14357
+ * ldmain.c (trace_file_tries): Rename to 'verbose'.
+ * ldfile.c: Likewise.
+ * ldlang.c: Likewise.
+ * ldmain.h: Likewise.
+ * lexsup.c: Likewise.
+ * emultempl/elf32.em: Likewise.
+ * emultemp/spuelf.em: Likewise.
+ * pe-dll.c (pe_dll_generate_implib): Only print creation message
+ in verbose mode.
+
2012-07-10 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14156
/* First strip off everything before the last '/'. */
soname = lbasename (abfd->filename);
- if (trace_file_tries)
+ if (verbose)
info_msg (_("found %s at %s\n"), soname, name);
global_found = NULL;
n.by = l->by;
n.name = l->name;
nn.by = l->by;
- if (trace_file_tries)
+ if (verbose)
info_msg (_("%s needed by %B\n"), l->name, l->by);
/* As-needed libs specified on the command line (or linker script)
cmd[3] = entry->the_bfd->filename;
cmd[4] = oname;
cmd[5] = NULL;
- if (trace_file_tries)
+ if (verbose)
{
info_msg (_("running: %s \"%s\" \"%s\" \"%s\" \"%s\"\n"),
cmd[0], cmd[1], cmd[2], cmd[3], cmd[4]);
{
entry->the_bfd = bfd_openr (attempt, entry->target);
- if (trace_file_tries)
+ if (verbose)
{
if (entry->the_bfd == NULL)
info_msg (_("attempt to open %s failed\n"), attempt);
if (result != NULL)
*sysrooted = is_sysrooted_pathname (name);
- if (trace_file_tries)
+ if (verbose)
{
if (result == NULL)
info_msg (_("cannot find script file %s\n"), name);
if (!entry->flags.reload)
#endif
ldlang_add_file (entry);
- if (trace_files || trace_file_tries)
+ if (trace_files || verbose)
info_msg ("%I\n", entry);
break;
/* Nonzero means print names of input files as processed. */
bfd_boolean trace_files;
-/* Nonzero means same, but note open failures, too. */
-bfd_boolean trace_file_tries;
+/* Nonzero means report actions taken by the linker, and describe the linker script in use. */
+bfd_boolean verbose;
/* Nonzero means version number was printed, so exit successfully
instead of complaining if no input files are given. */
lex_string = NULL;
}
- if (trace_file_tries)
+ if (verbose)
{
if (saved_script_handle)
info_msg (_("using external linker script:"));
minfo ("(%s)\n", name);
}
- if (trace_files || trace_file_tries)
+ if (trace_files || verbose)
info_msg ("%I\n", &orig_input);
return TRUE;
}
extern bfd_boolean force_make_executable;
extern char *default_target;
extern bfd_boolean trace_files;
-extern bfd_boolean trace_file_tries;
+extern bfd_boolean verbose;
extern bfd_boolean version_printed;
extern bfd_boolean demangling;
extern int g_switch_value;
case OPTION_VERBOSE:
ldversion (1);
version_printed = TRUE;
- trace_file_tries = TRUE;
+ verbose = TRUE;
overflow_cutoff_limit = -2;
if (optarg != NULL)
{
return;
}
- /* xgettext:c-format */
- info_msg (_("Creating library file: %s\n"), impfilename);
+ if (verbose)
+ /* xgettext:c-format */
+ info_msg (_("Creating library file: %s\n"), impfilename);
bfd_set_format (outarch, bfd_archive);
outarch->has_armap = 1;