aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-07-13 13:20:27 +0000
committerNick Clifton <nickc@redhat.com>2012-07-13 13:20:27 +0000
commitcd6f1cf350bbc5d91977fccb8082cecea60d8465 (patch)
tree7b799c1b9f30992024c7b3dad4fc7a6e2b0633cb /ld
parent61e44cfa2682596d7aba639712be9ff51cae2ef8 (diff)
downloadgdb-cd6f1cf350bbc5d91977fccb8082cecea60d8465.zip
gdb-cd6f1cf350bbc5d91977fccb8082cecea60d8465.tar.gz
gdb-cd6f1cf350bbc5d91977fccb8082cecea60d8465.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog13
-rw-r--r--ld/emultempl/elf32.em4
-rw-r--r--ld/emultempl/spuelf.em2
-rw-r--r--ld/ldfile.c4
-rw-r--r--ld/ldlang.c2
-rw-r--r--ld/ldmain.c8
-rw-r--r--ld/ldmain.h2
-rw-r--r--ld/lexsup.c2
-rw-r--r--ld/pe-dll.c5
9 files changed, 28 insertions, 14 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 7327db5..a952530 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,16 @@
+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
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 2b7a352..de51050 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -412,7 +412,7 @@ fragment <<EOF
/* 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;
@@ -1216,7 +1216,7 @@ gld${EMULATION_NAME}_after_open (void)
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)
diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em
index 2bcfcc2..eef57aa 100644
--- a/ld/emultempl/spuelf.em
+++ b/ld/emultempl/spuelf.em
@@ -535,7 +535,7 @@ embedded_spu_file (lang_input_statement_type *entry, const char *flags)
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]);
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 41ace36..e9091e9 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -126,7 +126,7 @@ ldfile_try_open_bfd (const char *attempt,
{
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);
@@ -465,7 +465,7 @@ try_open (const char *name, bfd_boolean *sysrooted)
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);
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 317e445..5a4eef7 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2740,7 +2740,7 @@ load_symbols (lang_input_statement_type *entry,
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;
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 3bdaf4d..15f8ebf 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -88,8 +88,8 @@ int g_switch_value = 8;
/* 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. */
@@ -340,7 +340,7 @@ main (int argc, char **argv)
lex_string = NULL;
}
- if (trace_file_tries)
+ if (verbose)
{
if (saved_script_handle)
info_msg (_("using external linker script:"));
@@ -861,7 +861,7 @@ add_archive_element (struct bfd_link_info *info,
minfo ("(%s)\n", name);
}
- if (trace_files || trace_file_tries)
+ if (trace_files || verbose)
info_msg ("%I\n", &orig_input);
return TRUE;
}
diff --git a/ld/ldmain.h b/ld/ldmain.h
index 527d3f2..8363833 100644
--- a/ld/ldmain.h
+++ b/ld/ldmain.h
@@ -31,7 +31,7 @@ extern FILE *previous_script_handle;
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;
diff --git a/ld/lexsup.c b/ld/lexsup.c
index b5e3468..fc410c9 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1214,7 +1214,7 @@ parse_args (unsigned argc, char **argv)
case OPTION_VERBOSE:
ldversion (1);
version_printed = TRUE;
- trace_file_tries = TRUE;
+ verbose = TRUE;
overflow_cutoff_limit = -2;
if (optarg != NULL)
{
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 84ff029..31beac8 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -2713,8 +2713,9 @@ pe_dll_generate_implib (def_file *def, const char *impfilename, struct bfd_link_
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;