[all-commits] [llvm/llvm-project] 322799: [llvm] Support indirect symbol replacement with GO...

PiJoules via All-commits all-commits at lists.llvm.org
Wed Nov 15 15:13:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 322799aa5010812550eec6b300bce185b6718109
      https://github.com/llvm/llvm-project/commit/322799aa5010812550eec6b300bce185b6718109
  Author: PiJoules <6019989+PiJoules at users.noreply.github.com>
  Date:   2023-11-15 (Wed, 15 Nov 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetObjectFile.cpp
    M llvm/lib/Target/X86/X86TargetObjectFile.h
    A llvm/test/MC/ELF/rtti-proxy-gotpcrel.ll

  Log Message:
  -----------
  [llvm] Support indirect symbol replacement with GOTPCREL for x86_64 ELF (#67754)

There's an existing check in LLVM that can replace an offset to a
DSO-local symbol that is just a pointer to another symbol with a
GOTPCREL reloc. This is exactly what the RTTI proxy in the relative
vtables ABI is. This feature is supported for different macho platforms,
but not for ELF. This extends that support.




More information about the All-commits mailing list