aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-12-06 00:53:20 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-12-06 00:53:20 +0000
commitea360572bd7f868c3459f11286d6f873bb21ccdf (patch)
tree327fde718223cbb93951dd331cfded8217dbcc9d
parent2be3382c2051c9a3ab54f907251c98be4b86890f (diff)
downloadgdb-ea360572bd7f868c3459f11286d6f873bb21ccdf.zip
gdb-ea360572bd7f868c3459f11286d6f873bb21ccdf.tar.gz
gdb-ea360572bd7f868c3459f11286d6f873bb21ccdf.tar.bz2
Add the trailing `\n' to einfo in plugin.c.
2010-12-05 H.J. Lu <hongjiu.lu@intel.com> * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n' to einfo. (get_symbols): Likewise. (plugin_notice): Likewise. (plugin_multiple_definition): Likewise.
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/plugin.c12
2 files changed, 14 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1b6d70f..eeefd33 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,13 @@
2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
+ * plugin.c (asymbol_from_plugin_symbol): Add the trailing `\n'
+ to einfo.
+ (get_symbols): Likewise.
+ (plugin_notice): Likewise.
+ (plugin_multiple_definition): Likewise.
+
+2010-12-05 H.J. Lu <hongjiu.lu@intel.com>
+
PR ld/12288
* plugin.c (message): Add the trailing `\n'.
diff --git a/ld/plugin.c b/ld/plugin.c
index 420fcee..1832e49 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -310,11 +310,11 @@ asymbol_from_plugin_symbol (bfd *abfd, asymbol *asym,
unsigned char visibility;
if (!elfsym)
- einfo (_("%P%F: %s: non-ELF symbol in ELF BFD!"), asym->name);
+ einfo (_("%P%F: %s: non-ELF symbol in ELF BFD!\n"), asym->name);
switch (ldsym->visibility)
{
default:
- einfo (_("%P%F: unknown ELF symbol visibility: %d!"),
+ einfo (_("%P%F: unknown ELF symbol visibility: %d!\n"),
ldsym->visibility);
case LDPV_DEFAULT:
visibility = STV_DEFAULT;
@@ -476,7 +476,7 @@ get_symbols (const void *handle, int nsyms, struct ld_plugin_symbol *syms)
&& blhe->type != bfd_link_hash_common)
{
/* We should not have a new, indirect or warning symbol here. */
- einfo ("%P%F: %s: plugin symbol table corrupt (sym type %d)",
+ einfo ("%P%F: %s: plugin symbol table corrupt (sym type %d)\n",
called_plugin->name, blhe->type);
}
@@ -871,7 +871,7 @@ plugin_notice (struct bfd_link_info *info ATTRIBUTE_UNUSED,
/* This is a ref from a non-IR file, so note the ref'd symbol
in the non-IR-only hash. */
if (!bfd_hash_lookup (non_ironly_hash, name, TRUE, TRUE))
- einfo (_("%P%X: %s: hash table failure adding symbol %s"),
+ einfo (_("%P%X: %s: hash table failure adding symbol %s\n"),
abfd->filename, name);
}
else if (!is_ref && is_dummy)
@@ -904,10 +904,10 @@ plugin_multiple_definition (struct bfd_link_info *info, const char *name,
struct bfd_link_hash_entry *blhe
= bfd_link_hash_lookup (info->hash, name, FALSE, FALSE, FALSE);
if (!blhe)
- einfo (_("%P%X: %s: can't find IR symbol '%s'"), nbfd->filename,
+ einfo (_("%P%X: %s: can't find IR symbol '%s'\n"), nbfd->filename,
name);
else if (blhe->type != bfd_link_hash_defined)
- einfo (_("%P%x: %s: bad IR symbol type %d"), name, blhe->type);
+ einfo (_("%P%x: %s: bad IR symbol type %d\n"), name, blhe->type);
/* Replace it with new details. */
blhe->u.def.section = nsec;
blhe->u.def.value = nval;