[LLVMdev] Generate PE\COFF file with ARM instructions

David Given dg at cowlark.com
Mon May 13 08:52:39 PDT 2013


Moshe, Nir wrote:
[...]
> I have a question about the LLVM ARM backend:
>  
> I try to build *.c files for Windows Phone (Windows 8) - so, basically
>  I need to generate an "arm-pe" file (I *think* it has the same file
> structure like x86-pe file, but i am not sure).
> unfortunately, LLVM has no support with ARM PE\COFF.

We recently ran into this. Unfortunately there's no binutils support for
ARM PE/COFF (at least the last time I looked).

It doesn't seem to be very hard to add; from what I found out, the only
real difference is a difference to the CPU type field. But binutils is
sufficiently painful to wrangle that I couldn't do it in a few hours, so
we went for other tools.

With binutils support adding ARM PE/COFF should be fairly easy,
depending on how much the ABI has changed from ARM EABI.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ 𝕻𝖍'𝖓𝖌𝖑𝖚𝖎 𝖒𝖌𝖑𝖜'𝖓𝖆𝖋𝖍 𝕮𝖙𝖍𝖚𝖑𝖍𝖚 𝕽'𝖑𝖞𝖊𝖍
𝖜𝖌𝖆𝖍'𝖓𝖆𝖌𝖑 𝖋𝖍𝖙𝖆𝖌𝖓.
│

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130513/dcac9302/attachment.sig>


More information about the llvm-dev mailing list