chenall/grub4dos

grub4efi Only BOOTIA32.EFI stoped boot if memory 143 or reboot if memory more than 143 gcc version 8.4

Closed this issue · 4 comments

qemu-system-i386 -bios OVMF32.fd -cdrom efiboot.iso -boot d -m 143

2022-05-30_17-55-35

qemu-system-i386 -bios OVMF32.fd -cdrom efiboot.iso -boot d -m 144
reboot for ever

@chenall @yaya2007 @a1ive

Compile with gcc4.8

but both 4.6a and x86_64 efi work fine only i386 efi give this error

edit configure
replace
if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'

with
{ ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'

build with
CFLAGS="-fno-stack-protector -fno-pie -no-pie" ./build

you can look at
https://stackoverflow.com/questions/43367427/32-bit-absolute-addresses-no-longer-allowed-in-x86-64-linux

and this
https://wiki.ubuntu.com/ToolChain/CompilerFlags

close as resloved see
#315 (comment)