Create a LinkGraph from an ELF/x86 relocatable object

Synopsis

Declared in <llvm/ExecutionEngine/JITLink/ELF_x86.h>

Expected<std::unique_ptr<LinkGraph>>
createLinkGraphFromELFObject_x86(
    MemoryBufferRef ObjectBuffer,
    std::shared_ptr<orc::SymbolStringPool> SSP);

Description

Note: The graph does not take ownership of the underlying buffer, nor copy its contents. The caller is responsible for ensuring that the object buffer outlives the graph.

Return Value

A LinkGraph for the object, or an error if parsing fails.

Parameters

Name

Description

ObjectBuffer

Buffer containing the ELF/x86 relocatable object.

SSP

Symbol string pool used to intern symbol names in the graph.

Created with MrDocs