Skip to contentSkip to conversation

Support grub-emu on x32 (ILP32 but with x86-64 instruction set)

DISCUSSION Andrei Borzenkov 2 participants 2 messages Sep 13, 2014 – Sep 14, 2014

lore
Share & tools
lore
#0 lore raw
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_CFLAGS at 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.

#1 lore raw
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_CFLAGS at 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]]