grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Kernel fixes for Cygwin


From: Christian Franke
Subject: Re: [PATCH] Kernel fixes for Cygwin
Date: Mon, 21 Jul 2008 13:16:25 +0200

Javier Martín wrote:
> El lun, 21-07-2008 a las 12:33 +0200, Christian Franke escribió:
> > Bean wrote:
> > > BTW, if you have time, you can consider writing a tool that
> > > convert pe to elf directly, thus avoiding objcopy altogether. This
> > > shouldn't be too difficult, you can take a look at
> > > util/i386/efi/grub-mkimage.c, which does exactly the opposite,
> > > converting elf to pe32.
> > > 
> > 
> > due to the complexity of PE, a stand-alone converter may likely be
> > larger than the ~680 LoC converter I already offered here.
> Why do we even consider a PE->ELF converter? I think the easier way to
> go would have the people building GRUB in cygwin (not exactly newbies)
> to have an i386-pc-elf "cross compiler" built first, then use that for
> the bootloader programs and the normal gcc for tools. Even a "naked"
> (i.e. libraryless) cross compiler would work, since the bootloader
> part of GRUB is does not need libs (in C terminology, it's
> "freestanding").
> That way, we are free from "objcopy bugs" or "BFD design limitations".
> 

Yes, but this is not yet possible for the grub2 package in the Cygwin
distro, see:
http://lists.gnu.org/archive/html/grub-devel/2008-07/msg00263.html

Christian







reply via email to

[Prev in Thread] Current Thread [Next in Thread]