[all-commits] [llvm/llvm-project] a667aa: [RuntimeDyld] Added support for relocation of indi...

Moritz Sichert via All-commits all-commits at lists.llvm.org
Wed Nov 2 02:46:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a667aa4de041816cb4865bce8f523228f2332ffa
      https://github.com/llvm/llvm-project/commit/a667aa4de041816cb4865bce8f523228f2332ffa
  Author: Moritz Sichert <sichert at in.tum.de>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M llvm/include/llvm/Object/ELFObjectFile.h
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
    A llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF_STT_GNU_IFUNC.s

  Log Message:
  -----------
  [RuntimeDyld] Added support for relocation of indirect functions

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.

Differential Revision: https://reviews.llvm.org/D105465




More information about the All-commits mailing list