[PATCH] D101837: [PowerPC][LLD] Make sure that the correct Thunks are used.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 07:49:48 PDT 2021


stefanp created this revision.
stefanp added reviewers: NeHuang, nemanjai, MaskRay.
Herald added subscribers: shchenz, kbarton, arichardson, emaste.
stefanp requested review of this revision.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101837

Files:
  lld/ELF/Thunks.cpp
  lld/test/ELF/ppc64-pcrel-cross-link.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101837.342737.patch
Type: text/x-patch
Size: 5578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210504/61a58b7a/attachment.bin>


More information about the llvm-commits mailing list