mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-11 18:06:03 +08:00
* ldmain.c (warning_callback, warning_find_reloc): Prepend
"warning: " to warning messages.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2005-02-08 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* ldmain.c (warning_callback, warning_find_reloc): Prepend
|
||||||
|
"warning: " to warning messages.
|
||||||
|
|
||||||
2005-02-04 Alan Modra <amodra@bigpond.net.au>
|
2005-02-04 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
|
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
|
||||||
|
11
ld/ldmain.c
11
ld/ldmain.c
@ -1200,11 +1200,11 @@ warning_callback (struct bfd_link_info *info ATTRIBUTE_UNUSED,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (section != NULL)
|
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)
|
else if (abfd == NULL)
|
||||||
einfo ("%P: %s\n", warning);
|
einfo ("%P: %s%s\n", _("warning: "), warning);
|
||||||
else if (symbol == NULL)
|
else if (symbol == NULL)
|
||||||
einfo ("%B: %s\n", abfd, warning);
|
einfo ("%B: %s%s\n", abfd, _("warning: "), warning);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lang_input_statement_type *entry;
|
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);
|
bfd_map_over_sections (abfd, warning_find_reloc, &info);
|
||||||
|
|
||||||
if (! info.found)
|
if (! info.found)
|
||||||
einfo ("%B: %s\n", abfd, warning);
|
einfo ("%B: %s%s\n", abfd, _("warning: "), warning);
|
||||||
|
|
||||||
if (entry == NULL)
|
if (entry == NULL)
|
||||||
free (asymbols);
|
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)
|
&& strcmp (bfd_asymbol_name (*q->sym_ptr_ptr), info->symbol) == 0)
|
||||||
{
|
{
|
||||||
/* We found a reloc for the symbol we are looking for. */
|
/* 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;
|
info->found = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user