OSDN Git Service

Object, support both mach-o archive t.o.c file names
authorNick Kledzik <kledzik@apple.com>
Wed, 12 Nov 2014 01:37:45 +0000 (01:37 +0000)
committerNick Kledzik <kledzik@apple.com>
Wed, 12 Nov 2014 01:37:45 +0000 (01:37 +0000)
commit9abbcb7453368fbdb30f155e99c9dd05b5a154a3
tree976ad73e181210fc306c9d8183053ccdacf5859c
parentdc70865b5bec0118889262df38f8a68d77760553
Object, support both mach-o archive t.o.c file names

For historical reasons archives on mach-o have two possible names for the
file containing the table of contents for the archive: "__.SYMDEF SORTED"
and "__.SYMDEF".  But the libObject archive reader only supported the former.

This patch fixes llvm::object::Archive to support both names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/Archive.cpp
test/Object/Inputs/macho-archive-unsorted-x86_64.a [new file with mode: 0644]
test/Object/archive-symtab.test