From 837ae69f8b9d8fbb0a53b9a58b85496fa1962ba5 Mon Sep 17 00:00:00 2001 From: Sean Fertile Date: Tue, 9 Jul 2019 18:09:11 +0000 Subject: [Object][XCOFF] Add support for 64-bit file header and section header dumping. Adds a readobj dumper for 32-bit and 64-bit section header tables, and extend support for the file-header dumping to include 64-bit object files. Also refactors the binary file parsing to be done in a helper function in an attempt to cleanup error handeling. Differential Revision: https://reviews.llvm.org/D63843 llvm-svn: 365524 --- 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 934fd53b929..a953c1d8cb8 100644 --- a/llvm/lib/Object/Binary.cpp +++ b/llvm/lib/Object/Binary.cpp @@ -70,6 +70,7 @@ Expected> object::createBinary(MemoryBufferRef Buffer, case file_magic::pecoff_executable: case file_magic::bitcode: case file_magic::xcoff_object_32: + case file_magic::xcoff_object_64: case file_magic::wasm_object: return ObjectFile::createSymbolicFile(Buffer, Type, Context); case file_magic::macho_universal_binary: -- cgit v1.2.3