From 300475fe9d2e1ffb2ea4bb7f7d3fe9a11bbf8c43 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 8 Feb 2005 03:51:32 +0000 Subject: [PATCH] * ldmain.c (warning_callback, warning_find_reloc): Prepend "warning: " to warning messages. --- ld/ChangeLog | 5 +++++ ld/ldmain.c | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index aed570d471c..864f69b4323 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Hans-Peter Nilsson + + * ldmain.c (warning_callback, warning_find_reloc): Prepend + "warning: " to warning messages. + 2005-02-04 Alan Modra * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't diff --git a/ld/ldmain.c b/ld/ldmain.c index 2b58d63129d..4a767bc51ed 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -1200,11 +1200,11 @@ warning_callback (struct bfd_link_info *info ATTRIBUTE_UNUSED, return TRUE; if (section != NULL) - einfo ("%C: %s\n", abfd, section, address, warning); + einfo ("%C: %s%s\n", abfd, section, address, _("warning: "), warning); else if (abfd == NULL) - einfo ("%P: %s\n", warning); + einfo ("%P: %s%s\n", _("warning: "), warning); else if (symbol == NULL) - einfo ("%B: %s\n", abfd, warning); + einfo ("%B: %s%s\n", abfd, _("warning: "), warning); else { lang_input_statement_type *entry; @@ -1242,7 +1242,7 @@ warning_callback (struct bfd_link_info *info ATTRIBUTE_UNUSED, bfd_map_over_sections (abfd, warning_find_reloc, &info); if (! info.found) - einfo ("%B: %s\n", abfd, warning); + einfo ("%B: %s%s\n", abfd, _("warning: "), warning); if (entry == NULL) free (asymbols); @@ -1290,7 +1290,8 @@ warning_find_reloc (bfd *abfd, asection *sec, void *iarg) && strcmp (bfd_asymbol_name (*q->sym_ptr_ptr), info->symbol) == 0) { /* We found a reloc for the symbol we are looking for. */ - einfo ("%C: %s\n", abfd, sec, q->address, info->warning); + einfo ("%C: %s%s\n", abfd, sec, q->address, _("warning: "), + info->warning); info->found = TRUE; break; } -- 2.30.2