1 //===-- RuntimeDyldELF.h - Run-time dynamic linker for MC-JIT ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // ELF support for MC-JIT runtime dynamic linker.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_RUNTIME_DYLD_ELF_H
15 #define LLVM_RUNTIME_DYLD_ELF_H
17 #include "RuntimeDyldImpl.h"
23 class RuntimeDyldELF : public RuntimeDyldImpl {
25 void resolveX86_64Relocation(uint8_t *LocalAddress,
26 uint64_t FinalAddress,
31 void resolveX86Relocation(uint8_t *LocalAddress,
32 uint32_t FinalAddress,
37 void resolveARMRelocation(uint8_t *LocalAddress,
38 uint32_t FinalAddress,
43 virtual void resolveRelocation(uint8_t *LocalAddress,
44 uint64_t FinalAddress,
49 virtual void processRelocationRef(const ObjRelocationInfo &Rel,
50 const ObjectFile &Obj,
51 ObjSectionToIDMap &ObjSectionToID,
52 LocalSymbolMap &Symbols, StubMap &Stubs);
55 RuntimeDyldELF(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm) {}
57 bool isCompatibleFormat(const MemoryBuffer *InputBuffer) const;
60 } // end namespace llvm