Support ELF files of unknown type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer
2014-11-18 01:14:25 +00:00
parent 2c38b004d9
commit b9f39bcc82
5 changed files with 7 additions and 0 deletions

View File

@ -958,6 +958,9 @@ file_magic identify_magic(StringRef Magic) {
case 3: return file_magic::elf_shared_object;
case 4: return file_magic::elf_core;
}
else
// It's still some type of ELF file.
return file_magic::elf;
}
break;