[all-commits] [llvm/llvm-project] c1f3cf: [PowerPC][LLD] Change PPC64R2SaveStub to only use ...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Wed Jul 13 17:34:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1f3cffee1ec8d46f37175fecae91480be6a61e1
      https://github.com/llvm/llvm-project/commit/c1f3cffee1ec8d46f37175fecae91480be6a61e1
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M lld/ELF/Thunks.cpp
    M lld/test/ELF/ppc64-toc-call-to-pcrel-long-jump.s

  Log Message:
  -----------
  [PowerPC][LLD] Change PPC64R2SaveStub to only use non-PC-relative code

Currently the PPC64R2SaveStub thunk will produce Power 10 code by default.
This produced an issue when linking older code that made use of the st_other=1
bit but was never meant to be linked or run on Power 10.

This patch makes it so that only the R_PPC64_REL24_NOTOC relocation can produce
Power 10 code.

Reviewed By: MaskRay

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




More information about the All-commits mailing list