aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-12-08 11:38:25 +0000
committerAlan Modra <amodra@gmail.com>2005-12-08 11:38:25 +0000
commit362307121f3de7cbf4646f028d5c7faeafe68c94 (patch)
tree9a5d4ef421e4dffcc44cbe5ba409243b41c91a73
parent422673a90ba05bd6ddff2c7d8c6a5689f1757206 (diff)
downloadgdb-362307121f3de7cbf4646f028d5c7faeafe68c94.zip
gdb-362307121f3de7cbf4646f028d5c7faeafe68c94.tar.gz
gdb-362307121f3de7cbf4646f028d5c7faeafe68c94.tar.bz2
* pe-dll.c (build_filler_bfd): Conform error message to standard.
(pe_dll_generate_implib): Use %E in error message. (add_bfd_to_link): Likewise. (pe_implied_import_dll): Likewise.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/pe-dll.c10
2 files changed, 12 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9927ab8..d517ddb 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-08 Alan Modra <amodra@bigpond.net.au>
+
+ * pe-dll.c (build_filler_bfd): Conform error message to standard.
+ (pe_dll_generate_implib): Use %E in error message.
+ (add_bfd_to_link): Likewise.
+ (pe_implied_import_dll): Likewise.
+
2005-12-07 Thiemo Seufer <ths@networkno.de>
H.J. Lu <hongjiu.lu@intel.com>
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 88e7eda..e59d5d4 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -757,7 +757,7 @@ build_filler_bfd (int include_edata)
bfd_get_arch (output_bfd),
bfd_get_mach (output_bfd)))
{
- einfo ("%X%P: can not create BFD %E\n");
+ einfo ("%X%P: can not create BFD: %E\n");
return;
}
@@ -2272,10 +2272,10 @@ pe_dll_generate_implib (def_file *def, const char *impfilename)
head = ar_tail;
if (! bfd_set_archive_head (outarch, head))
- einfo ("%Xbfd_set_archive_head: %s\n", bfd_errmsg (bfd_get_error ()));
+ einfo ("%Xbfd_set_archive_head: %E\n");
if (! bfd_close (outarch))
- einfo ("%Xbfd_close %s: %s\n", impfilename, bfd_errmsg (bfd_get_error ()));
+ einfo ("%Xbfd_close %s: %E\n", impfilename);
while (head != NULL)
{
@@ -2297,7 +2297,7 @@ add_bfd_to_link (bfd *abfd, const char *name, struct bfd_link_info *link_info)
ldlang_add_file (fake_file);
if (!bfd_link_add_symbols (abfd, link_info))
- einfo ("%Xaddsym %s: %s\n", name, bfd_errmsg (bfd_get_error ()));
+ einfo ("%Xaddsym %s: %E\n", name);
}
void
@@ -2445,7 +2445,7 @@ pe_implied_import_dll (const char *filename)
dll = bfd_openr (filename, pe_details->target_name);
if (!dll)
{
- einfo ("%Xopen %s: %s\n", filename, bfd_errmsg (bfd_get_error ()));
+ einfo ("%Xopen %s: %E\n", filename);
return FALSE;
}