[PATCH] D105465: [RuntimeDyld] Added support for relocation of indirect functions

Moritz Sichert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 6 01:27:27 PDT 2021


MoritzS created this revision.
MoritzS added a reviewer: lhames.
Herald added a subscriber: hiraditya.
MoritzS requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In ELF, symbols of type STT_GNU_IFUNC need to be resolved by calling the
function at the symbol's address. This is implemented by adding special
stubs for all symbols of that type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105465

Files:
  llvm/include/llvm/ExecutionEngine/JITSymbol.h
  llvm/include/llvm/Object/ELFObjectFile.h
  llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
  llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
  llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
  llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
  llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF_STT_GNU_IFUNC.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105465.356630.patch
Type: text/x-patch
Size: 19964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210706/1acc8da5/attachment.bin>


More information about the llvm-commits mailing list