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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10493 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2003-12-17 00:18:18 +00:00
parent b49fa616d4
commit 6ca5b8f5f4
3 changed files with 6 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;

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;

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;