From 1daf786ba3db83455d4d2a9661d0715f433f8a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Tue, 22 Jun 2021 10:15:06 +0200 Subject: gas: update csect alignment for PPC prefixed instructions on XCOFF Power10 prefixed instructions must not cross 64-byte boundaries. This is already handled. However, on XCOFF, the csect must be updated to match the new alignment. * config/tc-ppc.c (md_assemble): Update ppc_current_csect alignment when finding prefixed instructions. --- gas/config/tc-ppc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gas/config/tc-ppc.c') diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index ad85d38..80818e9 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -4039,6 +4039,11 @@ md_assemble (char *str) boundaries. */ frag_align_code (6, 4); record_alignment (now_seg, 6); +#ifdef OBJ_XCOFF + /* Update alignment of the containing csect. */ + if (symbol_get_tc (ppc_current_csect)->align < 6) + symbol_get_tc (ppc_current_csect)->align = 6; +#endif /* Update "dot" in any expressions used by this instruction, and a label attached to the instruction. By "attached" we mean -- cgit v1.1