|
|
|||
File indexing completed on 2026-05-10 08:43:49
0001 //===------- ELF.h - Generic JIT link function for ELF ------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // Generic jit-link functions for ELF. 0010 // 0011 //===----------------------------------------------------------------------===// 0012 0013 #ifndef LLVM_EXECUTIONENGINE_JITLINK_ELF_H 0014 #define LLVM_EXECUTIONENGINE_JITLINK_ELF_H 0015 0016 #include "llvm/ExecutionEngine/JITLink/JITLink.h" 0017 0018 namespace llvm { 0019 namespace jitlink { 0020 0021 /// Create a LinkGraph from an ELF relocatable object. 0022 /// 0023 /// Note: The graph does not take ownership of the underlying buffer, nor copy 0024 /// its contents. The caller is responsible for ensuring that the object buffer 0025 /// outlives the graph. 0026 Expected<std::unique_ptr<LinkGraph>> 0027 createLinkGraphFromELFObject(MemoryBufferRef ObjectBuffer, 0028 std::shared_ptr<orc::SymbolStringPool> SSP); 0029 0030 /// Link the given graph. 0031 /// 0032 /// Uses conservative defaults for GOT and stub handling based on the target 0033 /// platform. 0034 void link_ELF(std::unique_ptr<LinkGraph> G, 0035 std::unique_ptr<JITLinkContext> Ctx); 0036 0037 } // end namespace jitlink 0038 } // end namespace llvm 0039 0040 #endif // LLVM_EXECUTIONENGINE_JITLINK_ELF_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|