[all-commits] [llvm/llvm-project] d3aeac: [PowerPC] Only use PLT annotations if using PIC re...

Justin Hibbits via All-commits all-commits at lists.llvm.org
Thu Dec 19 07:31:12 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d3aeac8e20fb3714eb69d6ed5838d57c7ddcd8e8
      https://github.com/llvm/llvm-project/commit/d3aeac8e20fb3714eb69d6ed5838d57c7ddcd8e8
  Author: Justin Hibbits <chmeeedalf at gmail.com>
  Date:   2019-12-19 (Thu, 19 Dec 2019)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/2008-10-28-f128-i32.ll
    M llvm/test/CodeGen/PowerPC/2010-02-12-saveCR.ll
    M llvm/test/CodeGen/PowerPC/available-externally.ll
    M llvm/test/CodeGen/PowerPC/srem-lkk.ll
    M llvm/test/CodeGen/PowerPC/stubs.ll
    M llvm/test/CodeGen/PowerPC/umulo-128-legalisation-lowering.ll
    M llvm/test/CodeGen/PowerPC/urem-lkk.ll

  Log Message:
  -----------
  [PowerPC] Only use PLT annotations if using PIC relocation model

Summary:
The default static (non-PIC, non-PIE) model for 32-bit powerpc does not
use @PLT annotations and relocations in GCC.  LLVM shouldn't use @PLT
annotations either, because it breaks secure-PLT linking with (some
versions of?) GNU LD.

Update the available-externally.ll test to reflect that default mode should be
the same as the static relocation, by using the same check prefix.

Reviewed by:    sfertile
Differential Revision: https://reviews.llvm.org/D70570




More information about the All-commits mailing list