From: Clément Chigot Date: Fri, 30 Jul 2021 13:58:40 +0000 (+0200) Subject: gas: correctly output XCOFF tbss symbols with XTY_CM type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a83ef1c760b4146d49d0f5729989e300ed4261fa;p=binutils-gdb.git gas: correctly output XCOFF tbss symbols with XTY_CM type. Global tbss symbols weren't correctly handled and were generating a symbol with XTY_SD instead of XTY_CM as expected. gas/ * config/tc-ppc.c (ppc_frog_symbol): Generate a XTY_CM when a symbol has a storage class of XMC_UL. --- diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index b7567083f66..af025af32ff 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -6001,7 +6001,8 @@ ppc_frob_symbol (symbolS *sym) a->x_csect.x_scnlen.l = (S_GET_VALUE (symbol_get_tc (sym)->next) - S_GET_VALUE (sym)); } - if (symbol_get_tc (sym)->symbol_class == XMC_BS) + if (symbol_get_tc (sym)->symbol_class == XMC_BS + || symbol_get_tc (sym)->symbol_class == XMC_UL) a->x_csect.x_smtyp = (symbol_get_tc (sym)->align << 3) | XTY_CM; else a->x_csect.x_smtyp = (symbol_get_tc (sym)->align << 3) | XTY_SD;