]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LD/PE: Make arch identifiers enumeration constants
authorMaciej W. Rozycki <macro@orcam.me.uk>
Mon, 13 Oct 2025 21:02:30 +0000 (22:02 +0100)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Mon, 13 Oct 2025 21:02:30 +0000 (22:02 +0100)
commit68d466101405e0660eb9619b8aaba7b2b5fec8a3
treecef79ee0b95d691e3ebae34fac31defac28d7205
parent54603750398b63263fd7924677ab0fe0affc4bad
LD/PE: Make arch identifiers enumeration constants

Convert internal PE architecture identifiers from macros to enumeration
constants so as to make any further updates less disruptive to code.

Add a PE_ARCH_none dummy placeholder so as to start the numbering of
actual architectures from 1 without the need to specify the numeric
value for any of the constants.

No functional change.  Suggested by Richard Earnshaw.
ld/pe-dll.c