-
Couldn't load subscription status.
- Fork 13.9k
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack #148057
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
2acc4eb to
150b1dc
Compare
|
@bors try |
This comment has been minimized.
This comment has been minimized.
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack try-job: aarch64-gnu
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
150b1dc to
6f5b3e0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack try-job: aarch64-gnu
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
6f5b3e0 to
1c8c95a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack try-job: aarch64-gnu
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
To avoid linker errors like
relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.data.rel.ro..L.hwasan'
we need to have `-C target-feature=+tagged-globals`, which is documented here:
https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#hwaddresssanitizer
1c8c95a to
38a1790
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack try-job: aarch64-gnu
|
Hm, if hwasan generally requires tagged globals (which it seems to do,) shouldn't we be enabling that feature whenever the hwaddress sanitizer is requested? This is what LLVM folks are saying in the linked LLVM PR they're doing for Clang as well... |
|
I agree. But that is probably not trivial, and while we wait for someone to get around to fix that, it seems like a good idea to make the test run on aarch64 and with 1 cgu to prevent regressions from slipping in. I'm currently on mobile. I can file an issue for that when I'm back on a desktop computer. (I see now I forgot to move this PR out of Draft.) |
|
Some changes occurred in tests/ui/sanitizer cc @rcvalle |
|
Yeah please file an issue. @bors r+ |
Done: #148185 Automatically add |
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack
To avoid linker errors like
relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.data.rel.ro..L.hwasan'
we need to have `-C target-feature=+tagged-globals`, which is documented [here](https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#hwaddresssanitizer). I learned that [here](llvm/llvm-project#164876 (comment)).
Closes rust-lang#83989
try-job: aarch64-gnu
tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack
To avoid linker errors like
relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.data.rel.ro..L.hwasan'
we need to have `-C target-feature=+tagged-globals`, which is documented [here](https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#hwaddresssanitizer). I learned that [here](llvm/llvm-project#164876 (comment)).
Closes rust-lang#83989
try-job: aarch64-gnu
Rollup of 14 pull requests Successful merges: - #144936 (CFI: Fix types that implement Fn, FnMut, or FnOnce) - #147185 (repr(transparent): do not consider repr(C) types to be 1-ZST) - #147840 (Rework unsizing coercions in the new solver) - #147915 (Update target maintainers android.md) - #148013 (1.91.0 release notes) - #148044 (compiletest: show output in debug logging) - #148057 (tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack) - #148139 (Add `coverage` scope for controlling paths in code coverage) - #148154 (Add a mailmap entry) - #148158 (ci: loongarch64: use medium code model to avoid relocation overflows) - #148166 (Re-enable macro-stepping test for AArch64) - #148172 (rustc-dev-guide subtree update) - #148175 (Fix typos: duplicate words in comments) - #148186 (rustdoc-search: add an integration test for CCI) Failed merges: - #147935 (Add LLVM realtime sanitizer) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #148057 - Enselic:hwasan-fix-v2, r=nagisa tests/ui/sanitizer/hwaddress.rs: Run on aarch64 and remove cgu hack To avoid linker errors like relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.data.rel.ro..L.hwasan' we need to have `-C target-feature=+tagged-globals`, which is documented [here](https://doc.rust-lang.org/beta/unstable-book/compiler-flags/sanitizer.html#hwaddresssanitizer). I learned that [here](llvm/llvm-project#164876 (comment)). Closes #83989 try-job: aarch64-gnu
To avoid linker errors like
we need to have
-C target-feature=+tagged-globals, which is documented here. I learned that here.Closes #83989
try-job: aarch64-gnu