gas: update csect alignment for PPC prefixed instructions on XCOFF
[deliverable/binutils-gdb.git] / gas / config / tc-ppc.c
index ad85d3863b0025be1809e33dc331f04920889e39..80818e9c9435fc401a7444b26e49622a42ab3c6e 100644 (file)
@@ -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
This page took 0.023404 seconds and 4 git commands to generate.