1 //===- ELFObjHandler.h ------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===-----------------------------------------------------------------------===/
9 /// This supports reading and writing of elf dynamic shared objects.
11 //===-----------------------------------------------------------------------===/
13 #ifndef LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H
14 #define LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H
16 #include "llvm/Object/ELFObjectFile.h"
17 #include "llvm/Object/ELFTypes.h"
18 #include "llvm/TextAPI/ELF/ELFStub.h"
26 /// Attempt to read a binary ELF file from a MemoryBuffer.
27 Expected
<std::unique_ptr
<ELFStub
>> readELFFile(MemoryBufferRef Buf
);
29 } // end namespace elfabi
30 } // end namespace llvm
32 #endif // LLVM_TOOLS_ELFABI_ELFOBJHANDLER_H