[all-commits] [llvm/llvm-project] f0adf3: [PowerPC][LLD] Make sure that the correct Thunks a...

stefanp-ibm via All-commits all-commits at lists.llvm.org
Thu May 6 10:00:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0adf3a24cdedb4c48e49a8792c5cfbd40ba3345
      https://github.com/llvm/llvm-project/commit/f0adf3a24cdedb4c48e49a8792c5cfbd40ba3345
  Author: Stefan Pintilie <stefanp at ca.ibm.com>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M lld/ELF/Thunks.cpp
    A lld/test/ELF/ppc64-pcrel-cross-link.s

  Log Message:
  -----------
  [PowerPC][LLD] Make sure that the correct Thunks are used.

This fixes an issue where mixed TOC / NOTOC calls can call the incorrect
thunks if a previous thunk already exists. The issue appears when a TOC
funciton calls a NOTOC callee and then a different NOTOC function calls the same
NOTOC callee. In this case the linker would sometimes incorrectly call the
same thunk for both cases.

Reviewed By: MaskRay

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




More information about the All-commits mailing list