From: Zac Walker Date: Fri, 18 Nov 2022 07:21:55 +0000 (+0100) Subject: GAS fix alignment for aarch64-pe X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c963bda81e255dbac7c1acd31121d282a4910308;p=binutils-gdb.git GAS fix alignment for aarch64-pe Fixes issue where various values of '.align' causes writing of COFF files to fail. Specific to the aarch64-pe target. --- diff --git a/gas/config/tc-aarch64.h b/gas/config/tc-aarch64.h index df73516022f..7a9a4e77bff 100644 --- a/gas/config/tc-aarch64.h +++ b/gas/config/tc-aarch64.h @@ -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