[LLVMdev] [PATCH] Mach-O Identify File Type

Jean-Daniel Dupas devlists at shadowlab.org
Wed Jun 25 16:59:28 PDT 2008


An improved Mach-O file type detection for sys::IdentifyFileType()
This patch add supports for single architecture mach-o files (the  
current implementation only support Universal Binary), and solve the  
signature conflict between java class and Universal Binary magics.

Note that this function will always returned dynamic library for  
Universal Binaries (like the current implementation) because the  
binary type is not include in the file header.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MachOFile.diff
Type: application/octet-stream
Size: 2859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080626/a6fa66b3/attachment.obj>
-------------- next part --------------



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080626/a6fa66b3/attachment.bin>


More information about the llvm-dev mailing list