Recognize 0x0000 as a COFF file magic.
authorRui Ueyama <ruiu@google.com>
Thu, 14 Nov 2013 22:09:08 +0000 (22:09 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 14 Nov 2013 22:09:08 +0000 (22:09 +0000)
commitb850a05f2c914fef74dbafbf61470512a976c632
tree182add9a77e395b70dc4faedcccbac6f4f581a9b
parent6a1a5e94e2b094aead41f171ee060d91ad25777c
Recognize 0x0000 as a COFF file magic.

Summary:
Some machine-type-neutral object files containing only undefined symbols
actually do exist in the Windows standard library. Need to recognize them
as COFF files.

Reviewers: Bigcheese

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2164

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194734 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Path.cpp
test/tools/llvm-readobj/Inputs/magic.coff-unknown [new file with mode: 0644]
test/tools/llvm-readobj/file-headers.test
unittests/Support/Path.cpp