Make getObjectType() smarter about ranlibbed Mac OS X archives.

llvm-svn: 10493
This commit is contained in:
Brian Gaeke 2003-12-17 00:18:18 +00:00
parent 91ed92fe5f
commit 0a9980582d
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ static enum ObjectType getObjectType(ar_hdr *H, unsigned char *MemberData,
// Check for sections with special names...
if (!memcmp(H->name, "__.SYMDEF ", 16))
return ArchiveSymbolTable;
if (!memcmp(H->name, "__.SYMDEF SORTED", 16))
return ArchiveSymbolTable;
if (!memcmp(H->name, "// ", 16))
return SVR4LongFilename;