-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[LLD][PowerPC] Fix "unrecognized instruction for IE to LE R_PPC64_TLS" for PowerPC targets #64424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-backend-powerpc |
Currently working on a fix, so this issue will be assigned to me. |
Is this because new instructions were added for TLS loads/stores? |
Yeah, the issue occurs because I am introducing more X-Form loads/stores that I can produce I believe they need to be handled in LLD because I did not catch this before as I realized I did not build libc++, which is where the test is coming from. |
If the fix is going to take a while and this is blocking the libc++ build, perhaps it is better to temporarily pull the patch until a complete fix is available. |
Removing https://reviews.llvm.org/D153645 for just https://github.com/llvm/llvm-project/tree/release/17.x LGTM, to not cause compatibility issues with lld TLS optimization. |
Are we still targetting a fix for 17.X? |
I forgot to link the patch back here, but I have https://reviews.llvm.org/D158197 up for review. |
@llvm/issue-subscribers-lld-elf |
@tru Yes, to answer the question explicitly, I believe we are still targeting a fix for 17.x with the patch I have up: https://reviews.llvm.org/D158197 |
Reopening issue to cherry-pick the fix into |
/branch llvm/llvm-project-release-prs/issue64424 |
…/stores when relaxing initial-exec to local-exec D153645 added additional X-Form load/stores that can be generated for TLS accesses. However, these added instructions have not been accounted for in lld. As a result, lld does not know how to handle them and cannot relax initial-exec to local-exec when the initial-exec sequence contains these additional load/stores. This patch aims to resolve llvm/llvm-project#64424. Differential Revision: https://reviews.llvm.org/D158197 (cherry picked from commit 698b45aa902de4d30c798e8d6bd080c8e31bade8)
/pull-request llvm/llvm-project-release-prs#675 |
…/stores when relaxing initial-exec to local-exec D153645 added additional X-Form load/stores that can be generated for TLS accesses. However, these added instructions have not been accounted for in lld. As a result, lld does not know how to handle them and cannot relax initial-exec to local-exec when the initial-exec sequence contains these additional load/stores. This patch aims to resolve llvm/llvm-project#64424. Differential Revision: https://reviews.llvm.org/D158197 (cherry picked from commit 698b45aa902de4d30c798e8d6bd080c8e31bade8)
As a result of https://reviews.llvm.org/D153645, there is a failure when linking an msan libcxx test during
check-runtimes
:This issue occurs on both LLVM 17.0.0 rc1 and
main
.A patch to fix this issue will follow.
The text was updated successfully, but these errors were encountered: