]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PowerPC64: stub debug dump
authorAlan Modra <amodra@gmail.com>
Wed, 22 Jun 2022 02:25:02 +0000 (11:55 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 22 Jun 2022 03:07:06 +0000 (12:37 +0930)
commit46439c90f2000edcb300c85ed843f8930752aed5
tree30f9245656adb00f2d5c8f3e80ff8dddb95bf796
parent581db2a29bddc6d7f2fda34aa4301e070f75c609
PowerPC64: stub debug dump

powerpc64le-linux-ld is failing the assertion in ppc_build_one_stub,
again apparently, which means a stub will overwrite the tail of a
previous stub.  The difficulty with debugging these issues is that
it's not a problem with the stub that triggers the assertion, but the
previous stub in that section.  This patch keeps track of the last
stub and adds a debug dump.  Hopefully that will help.

* elf64-ppc.c (enum _ppc64_sec_type): Add sec_stub.
(struct _ppc64_elf_section_data): Add u.last_ent.
(dump_previous_stub): New function.
(ppc_build_one_stub): Keep track of previous stub, and dump it
when finding an overlapping stub.
bfd/elf64-ppc.c