gas: handle csect in bss section for XCOFF
authorClément Chigot <clement.chigot@atos.net>
Tue, 15 Jun 2021 09:06:52 +0000 (11:06 +0200)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Jun 2021 13:59:47 +0000 (23:29 +0930)
commitbcf8470303e06cb6cd5294608aad913fe5580f45
tree7ef5ce89e4df1a0952945ad6655c060f66c2d6a1
parent18263be7565782a9c07045a7a72d80c507a5be09
gas: handle csect in bss section for XCOFF

Latest gcc versions are now generating csects instead of .lcomm
for bss symbols.
Some adjustements are needed in order to handle them.

* config/tc-ppc.c (md_begin): Create bss section with dummy
symbol.
(ppc_frob_symbol): Output XTY_CM for bss csects.
(ppc_fix_adjustable): Adjust condition to avoid bss csects.
gas/ChangeLog
gas/config/tc-ppc.c