]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PowerPC: Fix typo in PowerPC note pseudo-section names
authorAbhay Kandpal <abhay@linux.ibm.com>
Thu, 25 Sep 2025 09:55:02 +0000 (04:55 -0500)
committerAlan Modra <amodra@gmail.com>
Thu, 25 Sep 2025 21:32:04 +0000 (07:02 +0930)
commit9d4512e8444946d9d2d06d51f83246fd94b2da3f
tree28e0776f68ede130664c5df0df04a1a3592e5763
parentdd015929c9811fc6134ed6ef7471ba8135627c0b
PowerPC: Fix typo in PowerPC note pseudo-section names

The recent tidy-up commit 09e56f0515c3 ("Code tidy: bfd/elf.c:
Tidy up core note handling code.") introduced regressions in the
PowerPC core note handling.  The pseudo-section names for TM_CVSX,
TM_SPR, VSX and VMX notes were defined with an underscore instead of a
hyphen, breaking GDB test cases.  The same goes for one riscv and one
s390 define.

This patch restores the correct section names by using hyphens in the
definitions, fixing 897 GDB test failures on PowerPC.

bfd/
* elf.c: (NOTE_PSEUDO_SECTION_PPC_TM_CVSX),
(NOTE_PSEUDO_SECTION_PPC_TM_SPR, NOTE_PSEUDO_SECTION_PPC_VSX),
(NOTE_PSEUDO_SECTION_PPC_VMX, NOTE_PSEUDO_SECTION_RISCV_CSR),
(NOTE_PSEUDO_SECTION_S390_CTRS): Use hyphens in section names
instead of underscores.

(cherry picked from commit 30300ceca334a1a8997809b41ee7550bafa29b71)
bfd/elf.c