gbura...@gmail.com wrote:
>> It may be a recent regression because we have a reports of successful
>> boot in such configuration
>> (http://lists.gnu.org/archive/html/grub-devel/2009-05/msg00179.html and
>> neighbour threads).
>> Be sure that grub is compiled with -mcmodel=large. You can also try
>> disable usage of >4GiB memory by adding
>> #define MCMODEL_SMALL
>> to kern/efi/mm.c
>>     
>
> Hm, as far as I can understand, the grub is always compiled with 
> mcmodel=large for UEFI
>
>   
It's checked that gcc supports -mcmodel=large and if it doesn't it
defaults to smaller models and modifes module loader in order to satisfy
the necessary placement requirements. However grub.efi itself is loaded
by EFI and there is no way of informing it where grub should be loaded.
I guess I should remove this hack and just refuse to compile to 64-bit
efi if -mcmodel=large doesn't work.
Also it's possible that flags aren't propagated correctly so please
check that -mcmodel=large is really passed to gcc

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to