[LLVMdev] Support for Windows Phone 8.1

Damanjit Singh dsingh at adobe.com
Fri Jun 6 23:27:35 PDT 2014


Hi guys,

Would really appreciate any help here.

Thanks,
Daman

From: Damanjit Singh <dsingh at adobe.com<mailto:dsingh at adobe.com>>
Date: Friday, 6 June 2014 12:57 pm
To: "llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>" <llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>>
Subject: Support for Windows Phone 8.1

Hi LLVMdev,

Does the latest trunk code support Windows Phone 8.1 target ?

I was trying out a simple program, but Visual Studio 2013's linker failed for me with this error - app.obj : error LNK2008: Fixup target is not aligned 'add3'

This is what I tried -

  *   Download latest LLVM sources (as on 4th June) and build them on my MAC 10.9 machine.
  *   Wrote a simple a.c, with add3 function-

int add3(int i, int j)
{
int k = i+j;
return k;
}

  *   Create LLVM IR using Xcode 5.1's clang (clang -S -O0 -emit-llvm a.c)
  *   Create obj file - using llc - ./i686-apple-darwin11-llc -filetype=obj -mtriple=thumbv7-windows-msvc -O0 a.s
  *   Now on a Windows 8.1 Desktop machine, link this object file into sample (new DirectX app, windows phone) Visual Studio 2013 project.
  *   Declare and Call add3 in the sample windows project.
  *   I then get a linker error on building the solution.

1>app.obj : error LNK2008: Fixup target is not aligned 'add3'
1>LINK : fatal error LNK1165: link failed because of fixup errors
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


Could someone please confirm about the state of support for Windows Phone 8.1 ? Or am I missing something here?

Thanks,
Daman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140607/14386703/attachment.html>


More information about the llvm-dev mailing list