]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
gas/x86: reduce / correct target checks for --64 command line option
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Dec 2025 10:06:35 +0000 (11:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Dec 2025 10:06:35 +0000 (11:06 +0100)
commitb36bcf1edd063c5c8bca74be0d2a84b72a7862e8
tree931cd222ed9dab94a86aa996da82a771a0917f83
parent8c8ec38a99f276fc26d35c3caef8e02d8b292e73
gas/x86: reduce / correct target checks for --64 command line option

First, pei-x86-64 is meaningless for gas; it's a linker output target, not
one object files would use. Next, coff-x86-64 is meaningless for TE_PE
(and really coff-x86-64 isn't currently provided by any libbfd
configuration anyway). Then, of the three ones left exactly one is a
possible candidate for a given gas configuration. Checking others as well
would only lead to (possibly cryptic) errors later. And finally, even for
ELF we want to check for the one target which i386_target_format() would
also use. This last aspect then applies to --x32 handling as well (just
that there it's benign right now, as only one target exists starting
"elf32-x86-64".
gas/config/tc-i386.c