[all-commits] [llvm/llvm-project] 91cce1: [PowerPC] Implement R_PPC64_REL24_NOTOC local call...

Victor Huang via All-commits all-commits at lists.llvm.org
Mon Jul 20 10:48:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 91cce1a2bc346f9fec5284f777b404dafad5ff3c
      https://github.com/llvm/llvm-project/commit/91cce1a2bc346f9fec5284f777b404dafad5ff3c
  Author: Victor Huang <wei.huang at ibm.com>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M lld/ELF/Arch/PPC64.cpp
    M lld/ELF/Target.h
    M lld/ELF/Thunks.cpp
    A lld/test/ELF/ppc64-pcrel-call-to-toc.s
    M llvm/include/llvm/Object/ELF.h

  Log Message:
  -----------
  [PowerPC] Implement R_PPC64_REL24_NOTOC local calls, callee requires a TOC

The PC Relative code now allows for calls that are marked with the relocation
R_PPC64_REL24_NOTOC. This indicates that the caller does not have a valid TOC
pointer in R2 and does not require R2 to be restored after the call.

This patch is added to support local calls to callees that require a TOC

Reviewed By: sfertile, MaskRay, nemanjai, stefanp

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




More information about the All-commits mailing list