aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-14 17:08:37 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-14 17:08:37 +0000
commitcc23cc69c56ce199eb6505c8b3e5e704f3795d04 (patch)
treed232dcfa0532b44c52177784309603a8cb495acd /ld/ldmain.c
parent8bff41c1b7ca7abcf4b971ff4f7bf0e83f20477d (diff)
downloadgdb-cc23cc69c56ce199eb6505c8b3e5e704f3795d04.zip
gdb-cc23cc69c56ce199eb6505c8b3e5e704f3795d04.tar.gz
gdb-cc23cc69c56ce199eb6505c8b3e5e704f3795d04.tar.bz2
* ldmisc.c (vfinfo): Handle %D as %C, but never print the function
name. For %C, print the function name on a separate line, to keep the length of error messages under control. * ldmain.c (multiple_definition): Use %D for ``first defined here.'' (undefined_symbol): Use %D for ``more undefined references follow''. PR 3770.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 7ee24f3..754813b 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -163,6 +163,7 @@ main (argc, argv)
config.dynamic_link = false;
command_line.force_common_definition = false;
command_line.interpreter = NULL;
+ command_line.rpath = NULL;
link_info.callbacks = &link_callbacks;
link_info.relocateable = false;
@@ -604,7 +605,7 @@ multiple_definition (info, name, obfd, osec, oval, nbfd, nsec, nval)
einfo ("%X%C: multiple definition of `%T'\n",
nbfd, nsec, nval, name);
if (obfd != (bfd *) NULL)
- einfo ("%C: first defined here\n", obfd, osec, oval);
+ einfo ("%D: first defined here\n", obfd, osec, oval);
return true;
}
@@ -798,7 +799,7 @@ undefined_symbol (info, name, abfd, section, address)
einfo ("%X%C: undefined reference to `%T'\n",
abfd, section, address, name);
else if (error_count == MAX_ERRORS_IN_A_ROW)
- einfo ("%C: more undefined references to `%T' follow\n",
+ einfo ("%D: more undefined references to `%T' follow\n",
abfd, section, address, name);
return true;
@@ -880,7 +881,7 @@ notice_ysym (info, name, abfd, section, value)
bfd_vma value;
{
einfo ("%B: %s %s\n", abfd,
- section != &bfd_und_section ? "definition of" : "reference to",
+ bfd_is_und_section (section) ? "reference to" : "definition of",
name);
return true;
}