mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 14:04:24 +08:00
* ldmain.c (undefined_symbol): Change parameter name from `fatal'
to `error'. If only a warning, put warning in the reported string. Consistently set failure flag when not a warning.
This commit is contained in:
parent
49ed40de4e
commit
0b28295df7
@ -1,3 +1,9 @@
|
|||||||
|
2003-08-12 Ian Lance Taylor <ian@airs.com>
|
||||||
|
|
||||||
|
* ldmain.c (undefined_symbol): Change parameter name from `fatal'
|
||||||
|
to `error'. If only a warning, put warning in the reported
|
||||||
|
string. Consistently set failure flag when not a warning.
|
||||||
|
|
||||||
2003-08-08 Dmitry Diky <diwil@mail.ru>
|
2003-08-08 Dmitry Diky <diwil@mail.ru>
|
||||||
|
|
||||||
* Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
|
* Makefile.am: Add xW42 and xE42 parts. Sort MPU list according to
|
||||||
|
46
ld/ldmain.c
46
ld/ldmain.c
@ -1268,7 +1268,7 @@ undefined_symbol (struct bfd_link_info *info ATTRIBUTE_UNUSED,
|
|||||||
bfd *abfd,
|
bfd *abfd,
|
||||||
asection *section,
|
asection *section,
|
||||||
bfd_vma address,
|
bfd_vma address,
|
||||||
bfd_boolean fatal ATTRIBUTE_UNUSED)
|
bfd_boolean error)
|
||||||
{
|
{
|
||||||
static char *error_name;
|
static char *error_name;
|
||||||
static unsigned int error_count;
|
static unsigned int error_count;
|
||||||
@ -1311,27 +1311,47 @@ undefined_symbol (struct bfd_link_info *info ATTRIBUTE_UNUSED,
|
|||||||
{
|
{
|
||||||
if (error_count < MAX_ERRORS_IN_A_ROW)
|
if (error_count < MAX_ERRORS_IN_A_ROW)
|
||||||
{
|
{
|
||||||
einfo (_("%C: undefined reference to `%T'\n"),
|
if (error)
|
||||||
abfd, section, address, name);
|
einfo (_("%X%C: undefined reference to `%T'\n"),
|
||||||
if (fatal)
|
abfd, section, address, name);
|
||||||
einfo ("%X");
|
else
|
||||||
|
einfo (_("%C: warning: undefined reference to `%T'\n"),
|
||||||
|
abfd, section, address, name);
|
||||||
}
|
}
|
||||||
else if (error_count == MAX_ERRORS_IN_A_ROW)
|
else if (error_count == MAX_ERRORS_IN_A_ROW)
|
||||||
einfo (_("%D: more undefined references to `%T' follow\n"),
|
{
|
||||||
abfd, section, address, name);
|
if (error)
|
||||||
|
einfo (_("%X%D: more undefined references to `%T' follow\n"),
|
||||||
|
abfd, section, address, name);
|
||||||
|
else
|
||||||
|
einfo (_("%D: warning: more undefined references to `%T' follow\n"),
|
||||||
|
abfd, section, address, name);
|
||||||
|
}
|
||||||
|
else if (error)
|
||||||
|
einfo ("%X");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (error_count < MAX_ERRORS_IN_A_ROW)
|
if (error_count < MAX_ERRORS_IN_A_ROW)
|
||||||
{
|
{
|
||||||
einfo (_("%B: undefined reference to `%T'\n"),
|
if (error)
|
||||||
abfd, name);
|
einfo (_("%X%B: undefined reference to `%T'\n"),
|
||||||
if (fatal)
|
abfd, name);
|
||||||
einfo ("%X");
|
else
|
||||||
|
einfo (_("%B: warning: undefined reference to `%T'\n"),
|
||||||
|
abfd, name);
|
||||||
}
|
}
|
||||||
else if (error_count == MAX_ERRORS_IN_A_ROW)
|
else if (error_count == MAX_ERRORS_IN_A_ROW)
|
||||||
einfo (_("%B: more undefined references to `%T' follow\n"),
|
{
|
||||||
abfd, name);
|
if (error)
|
||||||
|
einfo (_("%X%B: more undefined references to `%T' follow\n"),
|
||||||
|
abfd, name);
|
||||||
|
else
|
||||||
|
einfo (_("%B: warning: more undefined references to `%T' follow\n"),
|
||||||
|
abfd, name);
|
||||||
|
}
|
||||||
|
else if (error)
|
||||||
|
einfo ("%X");
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user