diff options
author | Alan Modra <amodra@gmail.com> | 2023-05-22 10:35:02 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-05-22 10:35:02 +0930 |
commit | 17a6f5f26c661dd0f72133cac20db823bf57d7a3 (patch) | |
tree | a9bddbd75c1464cf58b7784425348bcb9972cb45 /bfd | |
parent | 92172a19f67026b3eb0f9be6762b7a5821abef84 (diff) | |
download | gdb-17a6f5f26c661dd0f72133cac20db823bf57d7a3.zip gdb-17a6f5f26c661dd0f72133cac20db823bf57d7a3.tar.gz gdb-17a6f5f26c661dd0f72133cac20db823bf57d7a3.tar.bz2 |
PowerPC64 report number of stub iterations
As a developer it is sometimes useful to know how many times stubs
have been resized. Report the count for users too, in ld --stats.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elf64-ppc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index daa6dee..33f4275 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -15320,19 +15320,19 @@ ppc64_elf_build_stubs (struct bfd_link_info *info, { char *groupmsg; if (asprintf (&groupmsg, - ngettext ("linker stubs in %u group\n", - "linker stubs in %u groups\n", + ngettext ("linker stubs in %u group", + "linker stubs in %u groups", stub_sec_count), stub_sec_count) < 0) *stats = NULL; else { - if (asprintf (stats, _("%s" + if (asprintf (stats, _("%s, iter %u\n" " branch %lu\n" " long branch %lu\n" " plt call %lu\n" " global entry %lu"), - groupmsg, + groupmsg, htab->stub_iteration, htab->stub_count[ppc_stub_long_branch - 1], htab->stub_count[ppc_stub_plt_branch - 1], htab->stub_count[ppc_stub_plt_call - 1], |