ΒΆllvm::Error optimizeGOTAndStubAccesses(
    llvm::jitlink::LinkGraph& G)

Description

Optimize the GOT and Stub relocations if the edge target address is in range 1. PCRel32GOTLoadRelaxable. For this edge kind, if the target is in range, then replace GOT load with lea 2. BranchPCRel32ToPtrJumpStubRelaxable. For this edge kind, if the target is in range, replace a indirect jump by plt stub with a direct jump to the target

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/x86_64.h:643

Parameters

llvm::jitlink::LinkGraph& G