HomePhabricator

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

Authored by stefanp on May 4 2021, 7:35 AM.

Description

[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

Details

Committed
stefanpMay 6 2021, 10:00 AM
Reviewer
MaskRay
Differential Revision
D101837: [PowerPC][LLD] Make sure that the correct Thunks are used.
Parents
rG6660319cef6e: [RISCV] Remove unused RISCV::VLEFF and VLEFF_MASK. NFC
Branches
Unknown
Tags
Unknown