mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 22:50:55 +00:00
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:
parent
b49fa616d4
commit
6ca5b8f5f4
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user