Skip to content

Commit 2acc4eb

Browse files
committed
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
1 parent 6244eff commit 2acc4eb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/ui/sanitizer/hwaddress.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
//@ needs-sanitizer-support
22
//@ needs-sanitizer-hwaddress
33
//
4-
// FIXME(#83706): this test triggers errors on aarch64-gnu
5-
//@ ignore-aarch64-unknown-linux-gnu
6-
//
7-
// FIXME(#83989): codegen-units=1 triggers linker errors on aarch64-gnu
8-
//@ compile-flags: -Z sanitizer=hwaddress -O -g -C codegen-units=16 -C unsafe-allow-abi-mismatch=sanitizer
4+
//@ compile-flags: -Z sanitizer=hwaddress -O -g -C unsafe-allow-abi-mismatch=sanitizer -C target-feature=+tagged-globals
95
//
106
//@ run-fail
117
//@ error-pattern: HWAddressSanitizer: tag-mismatch

0 commit comments

Comments
 (0)