mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +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…
x
Reference in New Issue
Block a user