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.
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
[lld][AArch64][ELF][PAC] Support AUTH relocations and AUTH ELF marking #72714
[lld][AArch64][ELF][PAC] Support AUTH relocations and AUTH ELF marking #72714
Changes from 43 commits
c493d78
589c645
a021f15
d341159
b791da9
b95dcf8
594f8a0
d793c0c
acb1730
de73eae
321a6a9
aff3a96
4e53afa
ec1c632
2136ad1
9ea8c5c
e3a64d2
865c983
1448a4a
203f61e
1b8c52b
e9b5337
aec9155
b215b0d
90dbcf4
d32b8e3
978ed06
ec04d8c
728c933
4409838
128831c
83eddae
08c749d
e4a37a6
05cf361
eb02b6a
f459527
2846e76
45fcbb9
0eb272a
964e9fe
2e8ec83
99df511
b6e0e28
cbc380a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This loop tries to find a reference filename, but the loop can be removed.
Consider cherry picking the simplification at https://github.com/maskray/llvm-project/tree/lld-pauth ? The branch assumes that #87434 is brought back.
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.
This actually can't be removed - try to change files order in corresponding lld run lines in test/ELF/aarch64-feature-pauth.s from
tag1.o noinfo1.o noinfo2.o
tonoinfo1.o tag1.o noinfo2.o
, and you'll get an error. I'll submitted this update - see 99df511.Explanation: if there are some files w/o PAuth core info which are processed before file with it, we'll never get a corresponding warning/error which we expect when enable
-z pauth-report=warning|error
. That's why it's crucial to find a file with PAuth core info first (if any), and then check others against it.Please let me know if I miss something and there is a room for simplification even given the case above.
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.
You are right, and thanks for the test improvement.
Add single quotes around
referenceFileName
and this patch LGTM!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.
single quotes around
referenceFileName
(We place single quotes around an identifier when it is placed beside a non-identifier word.)