This change is necessary to set correct EFlags according to the
options (-m*-float and -mabi=) passed to clang when input is assembly.
Note: -mabi= is not documented by as.
$ as --version GNU assembler (GNU Binutils) 2.40.50.20230316 ... $ as --target-help LARCH options:
But we can see gcc invokes as and passes the -mabi= option when compiling C or assembly.
$ gcc -c a.c -v 2>&1 -msoft-float | grep "as -v" as -v -mabi=lp64s -o a.o /tmp/ccFrxzZi.s $ gcc -c a.s -v 2>&1 -msoft-float | grep "as -v" as -v -mabi=lp64s -o a.o a.s