On Fri, Mar 18, 2016 at 06:26:47AM +0300, Andrei Borzenkov wrote: > > [...] > > CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie > > > > So I gave it a try and it seems better (?) > > > > $ ls -l > > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.im* > > -rwxr-xr-x 1 jirib wheel 3068 Mar 17 21:45 > > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.image* > > -rw-r--r-- 1 jirib wheel 2832 Mar 17 21:45 > > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.img > > > > $ objdump -f > > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.image > > > > /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.image: > > file format elf32-i386 > > architecture: i386, flags 0x00000002: > > EXEC_P > > start address 0x00008200 > > > > It is OK? > > > > It certainly looks better than before. Does it actually work? > > We aready use -fno-PIE, looks like we need to explicitly check for > -fno-pie as well.
I just booted OpenBSD from "native OpenBSD" grub2: grub-install /dev/rwd0c # used qemu for testing XX_xxxx files put into /etc/grub.d cat >> /etc/grub.d/40_custom << EOF menuentry "OpenBSD" { set root=(hd0,4) chainloader +1 } EOF grub-mkconfig -o /grub/grub.cfg Thank you, I'm going to proceed with pxechainloader. j. _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel