-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Mark ___asan_globals_registered
as an exported symbol for LTO
#114642
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @TaKO8Ki (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Mark `___asan_globals_registered` as an exported symbol for LTO Export a weak symbol defined by AddressSanitizer instrumentation. Previously, when using LTO, the symbol would get internalized and eliminated. Fixes rust-lang#113404. --------------- FWIW, let me list similar PRs from the past + who reviewed them: * rust-lang#68410 (fixing `__msan_keep_going` and `__msan_track_origins`; reviewed by `@varkor)` * rust-lang#60038 and rust-lang#48346 (fixing `__llvm_profile_raw_version` and `__llvm_profile_filename`; reviewed by `@alexcrichton)`
Mark `___asan_globals_registered` as an exported symbol for LTO Export a weak symbol defined by AddressSanitizer instrumentation. Previously, when using LTO, the symbol would get internalized and eliminated. Fixes rust-lang#113404. --------------- FWIW, let me list similar PRs from the past + who reviewed them: * rust-lang#68410 (fixing `__msan_keep_going` and `__msan_track_origins`; reviewed by ``@varkor)`` * rust-lang#60038 and rust-lang#48346 (fixing `__llvm_profile_raw_version` and `__llvm_profile_filename`; reviewed by ``@alexcrichton)``
@bors r- |
Thanks for reporting the test failure in #114751 (comment). The problem seems obvious in retrospect - on
and the test expects almost the same line, but with Let me relax the test expectations and ping you when the PR has been updated... |
73b5842
to
633b455
Compare
@tmiasko and/or @matthiaskrgr - could you PTAL again? |
@bors r+ rollup=never |
📌 Commit 633b4551832e83342e59abcf52d891f4ec82e299 has been approved by It is now in the queue for this repository. |
⌛ Testing commit 633b4551832e83342e59abcf52d891f4ec82e299 with merge 254538cb341f6aecb004662528685be25202831d... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
633b455
to
bf9820e
Compare
@bors r+ rollup=never |
📌 Commit bf9820e6fef8f8c06604b5673f36e33d94ed4c25 has been approved by It is now in the queue for this repository. |
⌛ Testing commit bf9820e6fef8f8c06604b5673f36e33d94ed4c25 with merge a9721fbd74af81a9f912673e5138da0847c8c9b3... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
bf9820e
to
d9abc46
Compare
These commits modify compiler targets. |
@tmiasko - can you PTAL again? This probably needs a quick re-review (to look at the new |
@anforowicz: 🔑 Insufficient privileges: Not in reviewers |
In this approach we would also have to replicate remaining conditions that control whether At the moment I don't have alternative suggestions, short of disabling UseGlobalGC. |
@rustbot author |
☔ The latest upstream changes (presumably #114946) made this pull request unmergeable. Please resolve the merge conflicts. |
This PR has been made obsolete by #114946 |
Export a weak symbol defined by AddressSanitizer instrumentation.
Previously, when using LTO, the symbol would get internalized and eliminated.
Fixes #113404.
FWIW, let me list similar PRs from the past + who reviewed them:
__msan_keep_going
and__msan_track_origins
; reviewed by @varkor)__llvm_profile_raw_version
and__llvm_profile_filename
; reviewed by @alexcrichton)