forked from pool/binutils
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
Index: binutils-2.45/gas/config/tc-i386.c
|
|
===================================================================
|
|
--- binutils-2.45.orig/gas/config/tc-i386.c 2025-07-27 01:00:00.000000000 +0200
|
|
+++ binutils-2.45/gas/config/tc-i386.c 2025-10-14 15:39:39.574328233 +0200
|
|
@@ -3413,11 +3413,15 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED
|
|
{
|
|
check_cpu_arch_compatible (string, cpu_arch[j].enable);
|
|
|
|
+ /* XXX code in the wild calls 'as --64' (to generate ELF64),
|
|
+ but then does '.arch i386' first and only then '.code32' or
|
|
+ '.code16'. This checking here would require swapping these
|
|
+ two directives, so just warn for the time being. */
|
|
if (flag_code == CODE_64BIT && !cpu_arch[j].enable.bitfield.cpu64 )
|
|
{
|
|
- as_bad (_("64bit mode not supported on `%s'."),
|
|
+ as_warn (_("64bit mode not supported on `%s' (consider swapping .arch and .code directives)."),
|
|
cpu_arch[j].name);
|
|
- goto restore_bad;
|
|
+ /*goto restore_bad;*/
|
|
}
|
|
|
|
if (flag_code == CODE_32BIT && !cpu_arch[j].enable.bitfield.cpui386)
|