GAS fix alignment for aarch64-pe
authorZac Walker <zac.walker@linaro.org>
Fri, 18 Nov 2022 07:21:55 +0000 (08:21 +0100)
committerZac Walker <zac.walker@linaro.org>
Fri, 18 Nov 2022 07:22:47 +0000 (08:22 +0100)
Fixes issue where various values of '.align' causes writing of COFF files to fail.
Specific to the aarch64-pe target.

gas/config/tc-aarch64.h

index df73516022f63858c0d997d2e67aa91d9ad69310..7a9a4e77bff6843b9ab206c2efe444fbadf27589 100644 (file)
@@ -191,7 +191,10 @@ struct aarch64_frag_type
       goto LABEL;                                                              \
     }
 
+/* COFF sub section alignment calculated using the write.c implementation.  */
+#ifndef OBJ_COFF
 #define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0
+#endif
 
 #define DWARF2_LINE_MIN_INSN_LENGTH    4