-
Notifications
You must be signed in to change notification settings - Fork 9
PR for llvm/llvm-project#64931 #671
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
Conversation
@MaskRay @statham-arm What do you think about merging this PR to the release branch? |
…arget. An execute-only target disallows data access to code sections. -fsanitize=function and -fsanitize=kcfi instrument indirect function calls to load a type hash before the function label. This results in a non-execute access to the code section and a runtime error. To solve the issue, -fsanitize=function should not be included in any check group (e.g. undefined) on an execute-only target. If a user passes -fsanitize=undefined, there is no error and no warning. However, if the user explicitly passes -fsanitize=function or -fsanitize=kcfi on an execute-only target, an error will be emitted. Fixes: llvm/llvm-project#64931. Reviewed By: MaskRay, probinson, simon_tatham Differential Revision: https://reviews.llvm.org/D158614 (cherry picked from commit 9ef536a12ea65a2b9e2511936327c7b621af38fb)
(cherry picked from commit d26dd681f9726ed7d43d7c0bdd8ee3cb2db69a2b)
Don't use glob for specific files (cherry picked from commit 39f6a31eaa665b1a01305346092ed69f4b9f940a)
…58614 clangDriver depends on clangBasic, so clangBasic should not depend on clangDriver, even just its header. Also remove clangBasic's dependency on LLVMOption. The issue can be seen through the bazel commit d26dd681f9726ed7d43d7c0bdd8ee3cb2db69a2b which is reverted now. Add hasFlagNoClaim and use it as we don't want to suppress -Wunused-command-line-argument for -mexecute-only just because -fsanitize= is specified. (cherry picked from commit c7dce0283b5b502dacd47eb1488342a31f4ed35a)
f1ffbea
to
18f8be9
Compare
Hmm this contains unrelated changes it seems like? |
There are some test failures in this as well. |
It looks to me as if the test failure has to do with D156363, which is on |
(I'm not very familiar with LLVM release procedure, so I don't know if it's the done thing to push an extra commit to the end of this PR branch making that change, or even if I'd have access to do it if I tried.) |
I am unfamiliar, either:) I modified the |
There are two As I now modify the patch series anyway, I have removed the two Bazel commits. |
Adjusted branch was merged manually. |
resolves llvm/llvm-project#64931