Registry Mirror
Skip to content

‎tests/assembly-llvm/pauth-basic.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//@ add-minicore
22
//@ assembly-output: emit-asm
3-
//@ only-pauthtest
43
//@ revisions: aarch64_unknown_linux_pauthtest
54
//@ [aarch64_unknown_linux_pauthtest] compile-flags: --target=aarch64-unknown-linux-pauthtest
5+
//@ [aarch64_unknown_linux_pauthtest] compile-flags: -Copt-level=3
66
//@ [aarch64_unknown_linux_pauthtest] needs-llvm-components: aarch64
77

88
#![feature(no_core, lang_items)]

‎tests/codegen-llvm/pauth/pauth-attr-cli-flags.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// ignore-tidy-file-linelength
2-
//@ only-pauthtest
32
//@ revisions: DEFAULT ALL DISABLE_JUMP DISABLE_AUTH_TRAPS DISABLE_CALLS DISABLE_INDIRCT_GOTOS DISABLE_RETURNS DISABLE_INTRINSICS DISABLE_TYPEINFO DISABLE_VT_PTR_ADDR DISABLE_VT_PTR_TYPE NONE
43

54
//@ add-minicore

‎tests/codegen-llvm/pauth/pauth-attr-special-funcs.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Make sure that compiler generated functions (main wrapper and __rust_try) also have ptrauth
44
// attributes set correctly. Rustc only generates __rust_try at O0, so use that opt level for the
55
// test.
6+
// Cannot be converted to minicore: catch_unwind is a std API and is what causes rustc to generate
7+
// the __rust_try wrapper this test is checking.
68

79
//@ needs-llvm-components: aarch64
810

‎tests/codegen-llvm/pauth/pauth-extern-c-direct-indirect-call.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
//@ add-minicore
22
// ignore-tidy-linelength
3-
//@ only-pauthtest
43
//@ revisions: O0_PAUTH O3_PAUTH
54

65
//@ [O0_PAUTH] needs-llvm-components: aarch64
76
//@ [O0_PAUTH] compile-flags: --target=aarch64-unknown-linux-pauthtest -C opt-level=0
7+
// O3_PAUTH relies on an InstCombine fold that removes the redundant `ptrauth` bundle from calls.
8+
// That fold first shipped in LLVM 22, gate this revision accordingly.
9+
//@ [O3_PAUTH] min-llvm-version: 22
810
//@ [O3_PAUTH] needs-llvm-components: aarch64
911
//@ [O3_PAUTH] compile-flags: --target=aarch64-unknown-linux-pauthtest -C opt-level=3
1012

‎tests/codegen-llvm/pauth/pauth-extern-c.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// ignore-tidy-file-linelength
2-
//@ only-pauthtest
32
//@ add-minicore
43

54
//@ revisions: O0_PAUTH O3_PAUTH O0_PAUTH-ELF-GOT O3_PAUTH-ELF-GOT O0_NO_PAUTH O3_NO_PAUTH

‎tests/codegen-llvm/pauth/pauth-extern-weak-global.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// ignore-tidy-linelength
2-
//@ only-pauthtest
32
//@ revisions: O0_PAUTH O3_PAUTH O0_NO_PAUTH O3_NO_PAUTH
43
//@ add-minicore
54

‎tests/codegen-llvm/pauth/pauth-init-fini.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// ignore-tidy-file-linelength
22
//@ add-minicore
3-
//@ only-pauthtest
43
//@ revisions: O0_PAUTH O3_PAUTH O0_PAUTH-ADDR-DISC O3_PAUTH-ADDR-DISC O0_PAUTH-NO-INIT-FINI O3_PAUTH-NO-INIT-FINI
54

65
//@ [O0_PAUTH] needs-llvm-components: aarch64
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
//@ compile-flags: -C target-feature=+crt-static --target aarch64-unknown-linux-pauthtest
22
//@ needs-llvm-components: aarch64
3-
//@ only-pauthtest
4-
53

64
#![feature(no_core)]
5+
#![no_core]
76
#![no_main]
87

98
//~? ERROR pointer authentication requires dynamic linking. Statically linked libc is incompatible, disable it using `-C target-feature=-crt-static`

‎tests/ui/target_modifiers/auxiliary/pauth.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ compile-flags: --target aarch64-unknown-linux-pauthtest -Zpointer-authentication=+calls,+init-fini
22
//@ needs-llvm-components: aarch64
3-
//@ only-pauthtest
3+
//@ no-prefer-dynamic
4+
//@ ignore-backends: gcc
45

56
#![feature(no_core)]
67
#![crate_type = "rlib"]

‎tests/ui/target_modifiers/incompatible_pauth.error_generated.stderr‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
error: mixing `-Zpointer-authentication` will cause an ABI mismatch in crate `incompatible_pauth`
2-
--> $DIR/incompatible_pauth.rs:14:1
3-
|
4-
LL | #![feature(no_core)]
5-
| ^
62
|
73
= help: the `-Zpointer-authentication` flag modifies the ABI so Rust crates compiled with different values of this flag cannot be used together safely
84
= note: `-Zpointer-authentication=+calls,-init-fini` in this crate is incompatible with `-Zpointer-authentication=+calls,+init-fini` in dependency `pauth`

0 commit comments

Comments
 (0)