aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/ppc64elf.em
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-06-19 13:51:05 +0000
committerAlan Modra <amodra@gmail.com>2003-06-19 13:51:05 +0000
commitbda6c678f698330b4e4e0a8a41cb98a9e15b609e (patch)
tree6dc3935260b25c46858fe87a55a8e1a17f41cf5b /ld/emultempl/ppc64elf.em
parentd2a300cfe348688766fc425056c10512691bae65 (diff)
downloadgdb-bda6c678f698330b4e4e0a8a41cb98a9e15b609e.zip
gdb-bda6c678f698330b4e4e0a8a41cb98a9e15b609e.tar.gz
gdb-bda6c678f698330b4e4e0a8a41cb98a9e15b609e.tar.bz2
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Dump out
statistics from ppc64_elf_build_stubs.
Diffstat (limited to 'ld/emultempl/ppc64elf.em')
-rw-r--r--ld/emultempl/ppc64elf.em16
1 files changed, 15 insertions, 1 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index c440752..da50ba1 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -387,8 +387,22 @@ gld${EMULATION_NAME}_finish ()
if (stub_file != NULL && stub_file->the_bfd->sections != NULL)
{
- if (!ppc64_elf_build_stubs (emit_stub_syms, &link_info))
+ char *msg = NULL;
+ char *line, *endline;
+
+ if (!ppc64_elf_build_stubs (emit_stub_syms, &link_info,
+ config.stats ? &msg : NULL))
einfo ("%X%P: can not build stubs: %E\n");
+
+ for (line = msg; line != NULL; line = endline)
+ {
+ endline = strchr (line, '\n');
+ if (endline != NULL)
+ *endline++ = '\0';
+ fprintf (stderr, "%s: %s\n", program_name, line);
+ }
+ if (msg != NULL)
+ free (msg);
}
}