[JITLink][RISCV] Handle R_RISCV_CALL_PLT fixups
In the default link configuration, PLT stubs are created automatically for R_RISCV_CALL_PLT relocations and the relocation itself is transformed to R_RISCV_CALL (PerGraphGOTAndPLTStubsBuilder_ELF_riscv). Only the latter is later handled when applying fixups and the former is simply ignored. This patch proposes to handle R_RISCV_CALL_PLT anyway when applying fixups to support custom configurations that do not need automatic PLT creation. An example of this is BOLT where PLT entries from the input binary are reused (D147544). Reviewed By: StephenFan Differential Revision: https://reviews.llvm.org/D148238
Loading
Please sign in to comment