<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64424>64424</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LLD][PowerPC] Fix "unrecognized instruction for IE to LE R_PPC64_TLS" for LLVM 17.0.0 rc1
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld,
backend:PowerPC
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
amy-kwan
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
amy-kwan
</td>
</tr>
</table>
<pre>
As a result of https://reviews.llvm.org/D153645, there is a failure when linking an msan libcxx test during `check-runtimes`:
```
$ cd /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests && /home/amyk/lldtest-mainbranch/./bin/clang++ MSAN_INST_TEST_OBJECTS.msan_test.cpp.powerpc64le-with-call.o MSAN_INST_TEST_OBJECTS.msan_test_main.cpp.powerpc64le-with-call.o MSAN_INST_GTEST.gtest-all.cc.powerpc64le-with-call.o /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/../libcxx_msan_powerpc64le/lib//libc++.a /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/../libcxx_msan_powerpc64le/lib//libc++abi.a -o /home/amyk/lldtest-mainbranch/runtimes/runtimes-bins/compiler-rt/lib/msan/tests/./Msan-powerpc64le-with-call-Test -Wl,--color-diagnostics -nostdlib++ -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fsanitize=memory -ldl -m64 -fno-function-sections -m64 -fno-function-sections
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
ld.lld: error: unrecognized instruction for IE to LE R_PPC64_TLS
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
A patch to fix this issue will follow.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzslk1v4zYTxz8NdRlQkGhJtg86OHb0YB8426AxukeDIkcWG4o0SMov--kLysm-tNt2e2hRoAEMi-Px_zfDkQT-uffqYBBrUt4Rxvhwpc9nbghjpNwkfAy9dfXrr0lr5bVeeeDg0I86gO2gD-HoyWxFWENY4_Ck8OxTrU9Dat2BsGaTl7OqKAlbQ-jRIagI6LjSo0M492hAK_OszAG4gcHzGLficoGAPoAcXUyRKhM9imfqRhPUgJ5UWayabUi2iuvb5xayAoQEwpreDkhYw4frM2GN1jIi6cCVaR03oo8dv_I-L2mrTIyFHY5Ko6MuRLVqCWtif4Q1keOBsIqw6jsLpYQ1rYpiobk5EHZH2B08PK3e79-9f9rtd_dPu_0Pd_-_X--e0lhmHxmpOB7Toz2jO4qq0EjPKvRUcK1T-6fifWzgOwn_i4j0MPUdc0L8ruhvH2ycVnrLiMtlP-3ni2Y-aV7-chtlyv-ljfFWpRzoPzQ3wpoHzw395s2ju_hK0Q-asDWlwmrrqFT8YKwPSnigcSEn8PR00g-hd8gl9bzDcP11TB126NAI_E2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