[LLVMdev] [lld] Verifying the Architecture of files read

Simon Atanasyan simon at atanasyan.com
Tue Apr 1 21:51:31 PDT 2014


On Wed, Apr 2, 2014 at 7:47 AM, Shankar Easwaran
<shankare at codeaurora.org> wrote:
> I am not sure if you looked at this thread
> (http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066155.html)
>
> let me know if you still have questions.
>
> As a short summary, we dont verify the architecture of files that are being
> read. We could very well be passed in a hexagon input file while the target
> specified was x86_64. we got to reject the input file as the user has chosen
> the architecture to be x86_64.

Moreover, inside MIPS architecture there are some incompatible
"sub-architectures". It would be nice if we can check input files and
reject incorrect combinations.

-- 
Simon Atanasyan



More information about the llvm-dev mailing list