[SystemZ][z/OS] Add GOFF support to file magic identification
authorAnirudh Prasad <anirudh_prasad@hotmail.com>
Tue, 20 Jul 2021 14:50:18 +0000 (10:50 -0400)
committerAnirudh Prasad <anirudh_prasad@hotmail.com>
Tue, 20 Jul 2021 14:50:47 +0000 (10:50 -0400)
commit0977f31cecf8aa4ad1be72748179f4d6a902daf4
tree46535babc10d848540b6a4229a46cbe77cf62487
parentfd855c24c72ce01573d726317acaaefc9809d9dc
[SystemZ][z/OS] Add GOFF support to file magic identification

- This patch adds in the GOFF format to the file magic identification logic in LLVM
- Currently, for the object file support, GOFF is marked as having as an error
- However, this is only temporary until https://reviews.llvm.org/D98437 is merged in

Reviewed By: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D105993
llvm/include/llvm/BinaryFormat/Magic.h
llvm/lib/BinaryFormat/Magic.cpp
llvm/lib/Object/Binary.cpp
llvm/lib/Object/ObjectFile.cpp
llvm/lib/Object/SymbolicFile.cpp
llvm/unittests/BinaryFormat/TestFileMagic.cpp