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
Differential D86608
[LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec stefanp on Aug 26 2020, 4:08 AM. Authored by
Details Add Thread Local Storage Local Exec support to LLD. This is to support PC Relative addressing of Local Exec. paddi r9, r13, x1@tprel The relocation is: R_PPC_TPREL34
Diff Detail Event TimelineComment Actions Removed the linker script that was not needed.
Comment Actions
Local Exec support exists, so this subject may be a bit confusing. This patch is about R_PPC64_TPREL34.
Comment Actions Fixed a couple of things on the test case. Comment Actions I need to apply your patch with curl -L 'https://reviews.llvm.org/D86608?download=1' | patch -p0 (for most other reviews I use -p1. arc diff uploaded patch can be applied with -p1
Comment Actions Thank you for the reviews! I'm sorry about not consistently using arc. I sometimes just create a patch and upload that. I'll try to use arc more consistently for Phabricator. I've updated the test case to simplify it a little. |
Do we need the address set up for this case? Seems we are not checking/verifying the offset using in the paddi to access x, y and z