Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
Quoted 4 lines
* configure.ac: Remove -m64 from checks for -mcmodel=large and -mno-red-zone. These are always either unnecessary (x86_64-emu) or already in
TARGET_CFLAGSat this point, and they produce incorrect results when building for x32.
This was added to match what grub-core/Makefile.am actually uses. So basically either Makefile.am needs fixing as well or your patch does not fix the actual problem - meaning efiemu64.o will fail to compile.
Quoted 8 lines · Andrei Borzenkov
Quoted 4 lines
* configure.ac: Remove -m64 from checks for -mcmodel=large and -mno-red-zone. These are always either unnecessary (x86_64-emu) or already in
TARGET_CFLAGSat this point, and they produce incorrect results when building for x32.This was added to match what grub-core/Makefile.am actually uses. So basically either Makefile.am needs fixing as well or your patch does not fix the actual problem - meaning efiemu64.o will fail to compile.
That's fine. My change was not in the efiemu test, but in some similar tests further down whose output is used to adjust TARGET_CFLAGS. It would be incorrect to sync these tests with the manual rules for efiemu.
Signature · 1 line
Colin Watson [[email protected]]