-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Add deactivation symbol operand to ConstantPtrAuth. #133537
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
Merged
pcc
merged 36 commits into
main
from
users/pcc/spr/add-deactivation-symbol-operand-to-constantptrauth
Nov 26, 2025
Merged
Changes from 30 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
384292b
[𝘀𝗽𝗿] changes to main this commit is based on
pcc e471928
[𝘀𝗽𝗿] initial version
pcc 64cf084
[𝘀𝗽𝗿] changes introduced through rebase
pcc 90ec548
Rebase
pcc 6ae2dc1
[𝘀𝗽𝗿] changes introduced through rebase
pcc 3190e38
Rebase
pcc 79cf080
[𝘀𝗽𝗿] changes introduced through rebase
pcc 150a83f
Rebase
pcc 504016d
[𝘀𝗽𝗿] changes introduced through rebase
pcc 4042701
Rebase
pcc 4c54cc0
[𝘀𝗽𝗿] changes introduced through rebase
pcc 8413f5e
Rebase
pcc ecb30a9
[𝘀𝗽𝗿] changes introduced through rebase
pcc f4981a9
Rebase
pcc e728f34
Add verifier check
pcc cc3d2c5
[𝘀𝗽𝗿] changes introduced through rebase
pcc 063c7a4
Rebase
pcc 7dbd438
[𝘀𝗽𝗿] changes introduced through rebase
pcc cff37c4
Rebase
pcc 60e836e
Address review comment
pcc a780d18
Address review comment
pcc 51c353b
Fix
pcc 5d96964
[𝘀𝗽𝗿] changes introduced through rebase
pcc fae818f
Update LangRef
pcc f0afa10
Address review comment
pcc 1656b78
Add combine check
pcc da93f4b
[𝘀𝗽𝗿] changes introduced through rebase
pcc 4890d9a
Address review comment
pcc 47d0b09
[𝘀𝗽𝗿] changes introduced through rebase
pcc cb4704b
Rebase
pcc e24cac3
[𝘀𝗽𝗿] changes introduced through rebase
pcc ccd178f
Rebase, address review comments
pcc 14c82c0
[𝘀𝗽𝗿] changes introduced through rebase
pcc 7db7306
Format
pcc 5d10798
[𝘀𝗽𝗿] changes introduced through rebase
pcc abf14d3
Rebase
pcc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # REQUIRES: aarch64 | ||
|
|
||
| # RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o | ||
| # RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck --check-prefix=ERR %s | ||
|
|
||
| .rodata | ||
| # ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against local symbol | ||
| .8byte func@FUNCINIT | ||
|
|
||
| .data | ||
| # ERR: error: relocation R_AARCH64_FUNCINIT64 cannot be used against ifunc symbol 'ifunc' | ||
| .8byte ifunc@FUNCINIT | ||
|
|
||
| .text | ||
| func: | ||
| .type ifunc, @gnu_indirect_function | ||
| ifunc: | ||
| ret |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # REQUIRES: aarch64 | ||
|
|
||
| # RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o | ||
| # RUN: ld.lld %t.o -o %t | ||
| # RUN: llvm-readelf -s -r %t | FileCheck %s | ||
| # RUN: ld.lld %t.o -o %t -pie | ||
| # RUN: llvm-readelf -s -r %t | FileCheck %s | ||
| # RUN: not ld.lld %t.o -o %t -shared 2>&1 | FileCheck --check-prefix=ERR %s | ||
|
|
||
| .data | ||
| # CHECK: R_AARCH64_IRELATIVE [[FOO:[0-9a-f]*]] | ||
| # ERR: relocation R_AARCH64_FUNCINIT64 cannot be used against preemptible symbol 'foo' | ||
| .8byte foo@FUNCINIT | ||
|
|
||
| .text | ||
| # CHECK: {{0*}}[[FOO]] {{.*}} foo | ||
| .globl foo | ||
| foo: | ||
| ret |
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/*DeactivationSymbol=*/There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done