aarch64-pe can't fill 16 bytes in section .text
authorAlan Modra <amodra@gmail.com>
Tue, 15 Nov 2022 08:13:43 +0000 (18:43 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 15 Nov 2022 21:21:24 +0000 (07:51 +1030)
commitbc8f3910c08212b325fda273f01566da8f53c81a
treef84ca5534b4d305b138fcdd785a518bf079e843c
parent02dbc2b9e76ad0cd452563c3ee7a8b1571eed89b
aarch64-pe can't fill 16 bytes in section .text

Without commit b66e671854, this:
 .p2align 4
 nop
 .p2align 3
 nop
results in an error when coff_frob_section attempts to pad out the
section to a 16-byte boundary.  Due to miscalculating the pad pattern
repeat count, write.c:write_contents attempts to shove 16 bytes of
padding into the remaining 4 bytes of the .text section.

* config/obj-coff.c (coff_frob_section): Correct fill count.
Don't pad after errors.
gas/config/obj-coff.c