Re: PowerPC64: stub debug dump
authorAlan Modra <amodra@gmail.com>
Thu, 23 Jun 2022 01:51:36 +0000 (11:21 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 23 Jun 2022 08:31:59 +0000 (18:01 +0930)
commitecc741e64e87d505fa15ca565b0d94f333e7582a
tree48a1277ea14142c9f80a5e918dbabd455bb6bbb6
parent83c325007c5599fa9b60b8d5f7b84842160e1d1b
Re: PowerPC64: stub debug dump

Let's show the current stub as well as the previous one.  Of interest
is the current offset and a new field, id.  Check that the build
hash table traversal is in the same order as sizing traversal too.

* elf64-ppc.c (struct ppc_stub_hash_entry): Add id.
(struct ppc_link_hash_table): Add stub_id.
(stub_hash_newfunc): Init id and symtype.
(dump_stub): New function, extracted from..
(dump_previous_stub): ..here.  Deleted.
(ppc_build_one_stub): Sanity check stub id as well as offset.
Show current stub as well as previous.
(ppc_size_one_stub): Set stub id.
(ppc64_elf_size_stubs): Init stub_id before traversal.
(ppc64_elf_build_stubs): Likewise.
bfd/elf64-ppc.c