From bbd875b6ad69d8c2bffb96698e25ea2e401960eb Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 18 Nov 2014 01:14:25 +0000 Subject: Support ELF files of unknown type. llvm-svn: 222208 --- llvm/lib/Object/Binary.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Object/Binary.cpp') diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp index d23ee590569..c56eeb1ea8b 100644 --- a/llvm/lib/Object/Binary.cpp +++ b/llvm/lib/Object/Binary.cpp @@ -43,6 +43,7 @@ ErrorOr> object::createBinary(MemoryBufferRef Buffer, switch (Type) { case sys::fs::file_magic::archive: return Archive::create(Buffer); + case sys::fs::file_magic::elf: case sys::fs::file_magic::elf_relocatable: case sys::fs::file_magic::elf_executable: case sys::fs::file_magic::elf_shared_object: -- cgit v1.2.3