]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: always add dummy symbols when creating XCOFF sections.
authorClément Chigot <clement.chigot@atos.net>
Fri, 30 Jul 2021 11:56:54 +0000 (13:56 +0200)
committerClément Chigot <clement.chigot@atos.net>
Wed, 4 Aug 2021 06:54:59 +0000 (08:54 +0200)
commit934cb8492f1745c2883ba6be885e8729f92a258f
treed2f4ddc14f74b40ffb87949553981fae4d4da0d7
parent47fcfcbadce36c7ccc00c69b4c80717a0d6b9288
gas: always add dummy symbols when creating XCOFF sections.

Most of the algorithms for XCOFF in tc-ppc.c assume that
the csects field of a ppc_xcoff_section isn't NULL.
This was already made for most of the sections with the creation
of a dummy symbol.
This patch simply mades it default when creating a xcoff_section.

gas/
* config/tc-ppc.c (ppc_init_xcoff_section): Always create
the dummy symbol.
(md_begin): Adjust ppc_init_xcoff_section call.
(ppc_comm): Likewise.
(ppc_change_csect): Likewise.
gas/config/tc-ppc.c