[all-commits] [llvm/llvm-project] 4f0aa2: [lld][RISCV] Introduce handling for R_RISCV_PLT32 ...

PiJoules via All-commits all-commits at lists.llvm.org
Thu Feb 23 14:06:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f0aa2517d0cef0422cca03667f572b935f062fb
      https://github.com/llvm/llvm-project/commit/4f0aa2517d0cef0422cca03667f572b935f062fb
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M lld/ELF/Arch/RISCV.cpp
    M lld/ELF/InputSection.cpp
    A lld/test/ELF/riscv-reloc-plt32.s
    M lld/test/ELF/riscv-undefined-weak.s

  Log Message:
  -----------
  [lld][RISCV] Introduce handling for R_RISCV_PLT32 relocation

This introduces R_RISCV_PLT32, a PC-relative data relocation that takes
the 32-bit relative offset to a function or its PLT entry.

This is needed to support relative vtables on RISCV.

Github PR: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/363

D143226 has the llvm parts.

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




More information about the All-commits mailing list