Bean wrote:
> 
> Hi,
> 
> 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.
> 
> 

Hi,

due to the complexity of PE, a stand-alone converter may likely be
larger than the ~680 LoC converter I already offered here. It was
rejected, see this thread:
http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00174.html

It should be possible to build a smaller tool that only fixes the
relocation info in the generated ELF. But due to the C++ redesign of
smartmontools, my open source time is somewhat limited in the moment :-)

To provide Cygwin support for the next release, I would suggest to
accept the small hack in kern/i386/dl.c for now. It is already available
it and it works. It can be removed when a tool is available. Or accept
the converter mentioned above.

Christian





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

Reply via email to