From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: PowerPC64 report number of stub iterations
Date: Mon, 22 May 2023 18:08:45 +0930 [thread overview]
Message-ID: <ZGsqFcGAvyznqFbB@squeak.grove.modra.org> (raw)
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.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index daa6deef728..33f4275261d 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],
--
Alan Modra
Australia Development Lab, IBM
reply other threads:[~2023-05-22 8:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZGsqFcGAvyznqFbB@squeak.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).