On Mon, Apr 14, 2008 at 03:36:48PM +0200, Christian Franke wrote: > Robert Millan wrote: > > > > Alternatively, why don't you convert PE to ELF somewhere in util/ or > > so? See how the EFI port handles the reverse conversion (the ia64 > > patch adds more of this). > > > > I already have such a tool (based on objcopy with a small fix for > PE->ELF added). See this thread: > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00174.html
I understand that it may be difficult to fix this in a way the binutils maintainers will accept, but in your own words (from that thread), the alternative of fixing it in GRUB is a workaround. GRUB (and specially this part of GRUB) is very constrained in size. A few bytes can make the difference between safely embedding core.img in the post-MBR area or jumping directly to a hard-coded offset in your filesystem. I think you should really try either fixing BFD or working around the problem somewhere else (the runtime ELF loader seems like the worst of all the options to me). -- Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel