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

Nick Kledzik kledzik at apple.com
Wed Apr 2 18:36:42 PDT 2014


It is more than “verify” . Mach-o has “fat” (aka “universal”) files which contain multiple “slices”.  Each slice is for a different arch.  The Reader needs to know the intended arch up front to pick the right slice.  


On Apr 1, 2014, at 10:06 PM, Rui Ueyama <ruiu at google.com> wrote:
> I'd think we can simply wait for all files to be parsed and pass them to a LinkingContext to ask whether or not the input file set seems OK.


Except there is no method on lld::File that returns its “architecture”.  

We’ve been side stepping the issue of how to model architectures (e.g. triples) in lld.  We do need to eventually nail this down because we need to record that info in yaml and native files.

-Nick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140402/554423e1/attachment.html>


More information about the llvm-dev mailing list