]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
bfd/pe*.c including bfd/coff*.c
authorAlan Modra <amodra@gmail.com>
Sat, 23 Aug 2025 06:57:12 +0000 (16:27 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 24 Aug 2025 22:58:38 +0000 (08:28 +0930)
commit2c193469846d9b8ca6a62ae32e9b093a3dccf197
tree67dcc028146e1971f6845846b81080743f9bd12c
parent3825c972a636852600b47c242826313f4b9963b8
bfd/pe*.c including bfd/coff*.c

The model of a coff-<arch>.c file providing older COFF support, with a
pe-<arch>.c file defining some macros then including the coff-<arch>.c
file to provide PE support has been followed by a number of
architectures.

Some of them have PE specific code in their coff-<arch>.c files,
unconditionally compiled.  ie. they are not for old COFF support, and
there was no reason to follow the model.  They now get an error if
they are compiled stand-alone rather than being included from
pe-<arch>.c or pei-<arch>.c.

* coff-aarch64.c (COFF_WITH_peAArch64): Don't define here.
(COFF_WITH_PE): Error if not defined.
* coff-ia64.c (COFF_WITH_PE): Error if not defined.
* coff-loongarch64.c (COFF_WITH_peLoongArch64): Don't define here.
(COFF_WITH_PE): Error if not defined.
* coff-mcore.c (COFF_WITH_PE): Error if not defined.
* coff-riscv64.c (COFF_WITH_PE): Error if not defined.
* pei-aarch64.c: Remove duplicate includes.
* pei-loongarch64.c: Likewise.
* pei-riscv64.c: Likewise.
* pei-x86_64.c: Likewise.
bfd/coff-aarch64.c
bfd/coff-ia64.c
bfd/coff-loongarch64.c
bfd/coff-mcore.c
bfd/coff-riscv64.c
bfd/pei-aarch64.c
bfd/pei-loongarch64.c
bfd/pei-riscv64.c
bfd/pei-x86_64.c