[AArch64] Fix relative vtable PLT/GOTPCREL specifiers to use MCSpecifierExpr - #184393
Merged
Merged
Conversation
…ierExpr PR llvm#155776 changed S_PLT/S_GOTPCREL printing to %pltpcrel(x)/%gotpcrel(x) syntax via MCSpecifierExpr, but lowerSymbolDifference and getIndirectSymViaGOTPCRel still created MCSymbolRefExpr with these specifiers, which prints via the @-specifier table as @PLT/@GOTPCREL, leading to incorrect relocation types. Fixes: bed8997 (AArch64: Replace @plt/%gotpcrel in data directives with %pltpcrel %gotpcrel (llvm#155776)) Add llvm/test/CodeGen/AArch64/dso_local_equivalent.ll
MaskRay
enabled auto-merge (squash)
March 3, 2026 17:43
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/37676 Here is the relevant piece of the build log for the reference |
Contributor
|
Thanks for the fix, but we started seeing another issue. This is the link to the |
gulfemsavrun
added a commit
to gulfemsavrun/llvm-project
that referenced
this pull request
Mar 3, 2026
…MCSpecifierExpr (llvm#184393)" This reverts commit a34d56d. Revert "AArch64: Replace @plt/%gotpcrel in data directives with %pltpcrel %gotpcrel (llvm#155776)" This reverts commit bed8997.
Contributor
|
I'm attaching a reproducer. |
Contributor
|
We’ve confirmed that the issue is on our end, and we need to fix how we're using the @plt suffix in our code. |
sahas3
pushed a commit
to sahas3/llvm-project
that referenced
this pull request
Mar 4, 2026
…ierExpr (llvm#184393) PR llvm#155776 changed S_PLT/S_GOTPCREL printing to %pltpcrel(x)/%gotpcrel(x) syntax via MCSpecifierExpr, but lowerSymbolDifference and getIndirectSymViaGOTPCRel still created MCSymbolRefExpr with these specifiers, which prints via the @-specifier table as @PLT/@GOTPCREL, leading to incorrect relocation types. Fixes: bed8997 (AArch64: Replace @plt/%gotpcrel in data directives with %pltpcrel %gotpcrel (llvm#155776)) Add llvm/test/CodeGen/AArch64/dso_local_equivalent.ll
sujianIBM
pushed a commit
to sujianIBM/llvm-project
that referenced
this pull request
Mar 5, 2026
…ierExpr (llvm#184393) PR llvm#155776 changed S_PLT/S_GOTPCREL printing to %pltpcrel(x)/%gotpcrel(x) syntax via MCSpecifierExpr, but lowerSymbolDifference and getIndirectSymViaGOTPCRel still created MCSymbolRefExpr with these specifiers, which prints via the @-specifier table as @PLT/@GOTPCREL, leading to incorrect relocation types. Fixes: bed8997 (AArch64: Replace @plt/%gotpcrel in data directives with %pltpcrel %gotpcrel (llvm#155776)) Add llvm/test/CodeGen/AArch64/dso_local_equivalent.ll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #155776 changed S_PLT/S_GOTPCREL printing to %pltpcrel(x)/%gotpcrel(x)
syntax via MCSpecifierExpr, but lowerSymbolDifference and
getIndirectSymViaGOTPCRel still created MCSymbolRefExpr with these
specifiers, which prints via the @-specifier table as @PLT/@GOTPCREL,
leading to incorrect relocation types.
Fixes: bed8997
(AArch64: Replace @plt/%gotpcrel in data directives with %pltpcrel %gotpcrel (#155776))
Add llvm/test/CodeGen/AArch64/dso_local_equivalent.ll