[LLVMdev] generating ELF files on non-ELF platforms with MC

Villmow, Micah Micah.Villmow at amd.com
Wed Jan 4 08:54:46 PST 2012


I would have to back up Eli on this point. AMD uses an ELF on both Linux and windows for OpenCL and would like to have the ability to use the MC system to generate it instead of COFF.

Micah

> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Bendersky, Eli
> Sent: Wednesday, January 04, 2012 4:59 AM
> To: Anton Korobeynikov
> Cc: llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] generating ELF files on non-ELF platforms with
> MC
> 
> The existence of tools like Wine, LBW and several MachO loaders on
> Linux is a good indication that at least in most cases, it's possible
> to run code packaged in some container format on a system favoring
> another container. In the worst case, the dynamic loader may explicitly
> choke on some special features, but empirically it seems that most code
> can run without problems (we successfully executed many non-trivial
> workloads packaged inside ELF on Windows).
> 
> Eli
> 
> 
> -----Original Message-----
> From: Anton Korobeynikov [mailto:anton at korobeynikov.info]
> Sent: Wednesday, January 04, 2012 14:50
> To: Bendersky, Eli
> Cc: llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] generating ELF files on non-ELF platforms with
> MC
> 
> > Yes, what I mean is that I want to generate runnable Windows code, on
> Windows, but package in ELF as the object file. Note that there's
> absolutely no problem with this approach - in fact we have a functional
> prototype already.
> > The reason for this is that I currently want to employ MC-JIT on both
> Linux and Windows, without implementing two separate runtime dynamic
> loaders. I want to implement just RuntimeDyldELF, and use it on both
> Windows and Linux.
> Well... What will you do if you will need to support some windows-
> specific binary stuff which does not exist in ELF world? I cannot think
> about something in this area off-hand, but there might be something
> here.
> And surely there are MachO features which do not exist in ELF world.
> 
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
> ---------------------------------------------------------------------
> Intel Israel (74) Limited
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev






More information about the llvm-dev mailing list