HomePhabricator

[LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec

Authored by stefanp on Sep 15 2020, 6:23 AM.

Description

[LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec

Add Thread Local Storage Local Exec support to LLD. This is to support PC Relative addressing of Local Exec.
The patch teaches LLD to handle:

paddi r9, r13, x1@tprel

The relocation is:

R_PPC_TPREL34

Reviewed By: NeHuang, MaskRay

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